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