Ejemplo n.º 1
0
 public IActionResult Post([FromBody] MISAEntity entity)
 {
     try
     {
         var rowAffects = _baseServices.Insert(entity);
         if (rowAffects > 0)
         {
             return(StatusCode(201, rowAffects));
         }
         else
         {
             return(NoContent());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }