Esempio n. 1
0
 public IActionResult Delete(int id)
 {
     _sparePartService.Delete(id);
     return(Ok(true));
 }
Esempio n. 2
0
 public async Task <IActionResult> Delete(int id)
 => await GetResponse(async (userId) =>
                      new ApiResponseViewModel(true, "SparePart Deleted Successfully", await _service.Delete(id, userId)));