Several repository bug fixes

Use Asnotracking method of DbSet class to prevent database tracking
error.(This case happen when we want to check others entity of same
class as reference but other entity of that class which have same
primary key want to edit(which is conflict).)
This will edit some of controller that cause these error too.