public bool Update([FromBody] DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData) { bool result = true; try { _repoObj.Update(representativeData); } catch { result = false; } return(result); }
public void Update(DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData) { _context.Entry(representativeData).State = EntityState.Modified; _context.SaveChanges(); }
public void Insert(DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData) { _context.DOCUS_SUB_LOOKUP_REPRESENTATIVE.Add(representativeData); _context.SaveChanges(); }
public void Inset([FromBody] DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData) { _repoObj.Insert(representativeData); }