Пример #1
0
 person IPersonService.Create(person person)
 {
     try
     {
         _context.Add(person);
         _context.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(person);
 }
Пример #2
0
 public person Create(person person)
 {
     try
     {
         _context.Add(person);
         _context.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(person);
 }