示例#1
0
        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();
        }
示例#2
0
 public void SaveAssToDb(Asignee asignee)
 {
     context.Asignees.Add(asignee);
     context.SaveChanges();
 }