public IActionResult Delete(int id)
 {
     if (id > 0)
     {
         _projectBL.DeleteProject(id);
         return(Ok());
     }
     return(BadRequest());
 }
Example #2
0
 public IHttpActionResult Delete(int id)
 {
     if (id == 0)
     {
         return(BadRequest());
     }
     else
     {
         int result = projectBL.DeleteProject(id);
         if (result == -1)
         {
             return(NotFound());
         }
         else
         {
             return(Ok());
         }
     }
 }