예제 #1
0
 public ApiResponseViewModel Delete(int id)
 {
     if (HttpContext.Current.Session["UserLogged"] == null)
     {
         return(CommonConstants.accessDenied);
     }
     return(_customerTypeService.Delete(id));
 }
예제 #2
0
        public async Task <ActionResult <bool> > Delete(Guid id)
        {
            var res = await _service.Delete(id);

            return(res);
        }
예제 #3
0
 public ActionResult Delete(Guid id)
 {
     _iCustomerTypeService.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }