public async Task <IActionResult> Delete(int id) { var isDeleted = await _repo.DeleteSupplierAsync(id); if (isDeleted) { return(Ok("Record Deleted.")); } else { return(BadRequest("Record Not Deleted.")); } }
public async Task <IActionResult> Delete(int id) { var isDeleted = await _repo.DeleteSupplierAsync(id); if (isDeleted) { return(Ok("Record Deleted.")); } else { return(BadRequest("Record Not Deleted.")); } }