public bool Update([FromBody] DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData)
        {
            bool result = true;

            try
            {
                _repoObj.Update(representativeData);
            }
            catch
            {
                result = false;
            }
            return(result);
        }
示例#2
0
 public void Update(DOCUS_SUB_LOOKUP_REPRESENTATIVE representativeData)
 {
     _context.Entry(representativeData).State = EntityState.Modified;
     _context.SaveChanges();
 }
示例#3
0
 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);
 }