public void Edit(ProfessorViewModel command) { var selecteditem = _irepository.GetByID(command.Id); selecteditem.Edit(command.Name, command.Family, command.Level, command.ImgAddress, command.Tel, command.Email, command.Address, command.LinkedInURL, command.MapAddress); _irepository.SaveChanges(); }