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