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