Example #1
0
 public bool Create(BusinessOccupation obj)
 {
     obj.Id = Guid.Empty;
     _context.BusinessOccupation.Add(obj);
     _context.SaveChanges();
     return(true);
 }
Example #2
0
 public bool Edit(BusinessOccupation obj)
 {
     try
     {
         _context.BusinessOccupation.Update(obj);
         _context.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }