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