Esempio n. 1
0
 public IActionResult Delete(int id)
 {
     try
     {
         if (id != 0)
         {
             var a = cabService.DeleteCab(id);
             return(Ok(a));
         }
         else
         {
             return(BadRequest());
         }
     }
     catch (Exception ex)
     {
         return(BadRequest());
     }
 }
Esempio n. 2
0
        public async Task <IActionResult> DeltePlace(int id)
        {
            await _cabService.DeleteCab(id);

            return(Ok());
        }