Esempio n. 1
0
 public IHttpActionResult Delete(MasterBin data)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     try
     {
         _binService.Delete(data);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Esempio n. 2
0
 public void Delete([FromBody] Bin bin)
 {
     _binService.Delete(bin);
 }