public async Task <IActionResult> Delete(int id) => await GetResponse(async (userId) => new ApiResponseViewModel(true, "Cheque Deleted Successfully", await _service.Delete(id, userId)));
public IActionResult DeleteChequePartial(string chequeId) { chequeService.Delete(x => x.Id == chequeId); return(RedirectToAction("Index")); }