public void UpdateAssInDatabase(Asignee asignee) { var result = context.Asignees.FirstOrDefault(d => d.Id == asignee.Id); if (result != null) { result.Name = asignee.Name; result.Email = asignee.Email; } context.SaveChanges(); }
public void SaveAssToDb(Asignee asignee) { context.Asignees.Add(asignee); context.SaveChanges(); }