public PERMIT_DATA Remove(PERMIT_DATA remove, string user) { remove.last_modified_by = user; remove.date_last_modified = DateTime.Now; var p = _context.PERMIT_DATA.Remove(remove); _context.SaveChanges(); return(p.Entity); }
public PERMIT_DATA Update(PERMIT_DATA update, string user) { update.last_modified_by = user; update.date_last_modified = DateTime.Now; var p = _context.PERMIT_DATA.Update(update); _context.SaveChanges(); return(p.Entity); }
public PERMIT_DATA Add(PERMIT_DATA add, string user) { add.last_modified_by = user; add.date_last_modified = DateTime.Now; add.date_created = DateTime.Now; add.created_by = user; var p = _context.PERMIT_DATA.Add(add); _context.SaveChanges(); return(p.Entity); }