コード例 #1
0
 public ActionResult <bool> Delete(int id)
 {
     try
     {
         if (_bonusRepository.DeleteBonus(id))
         {
             return(Ok(new Response {
                 Success = true, Message = "The process was successsful"
             }));
         }
         return(BadRequest(new Response {
             Success = false, Message = "The process was not successsful"
         }));
     }
     catch (Exception)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError));
     }
 }