public ApiResponseViewModel Delete(int id) { if (HttpContext.Current.Session["UserLogged"] == null) { return(CommonConstants.accessDenied); } return(_customerTypeService.Delete(id)); }
public async Task <ActionResult <bool> > Delete(Guid id) { var res = await _service.Delete(id); return(res); }
public ActionResult Delete(Guid id) { _iCustomerTypeService.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }