public IActionResult Update([FromBody] PersonalReference obj)
 {
     try
     {
         return(Ok(_logic.Update(obj)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
 public IActionResult Insert([FromBody] PersonalReference pr)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     try
     {
         return(Ok(_logic.Insert(pr)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Ejemplo n.º 3
0
 public bool Update(PersonalReference obj)
 {
     return(_unitOfWork.IPersonalReference.Update(obj));
 }
Ejemplo n.º 4
0
 public int Insert(PersonalReference obj)
 {
     return(_unitOfWork.IPersonalReference.Insert(obj));
 }