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

            return(res);
        }
Exemplo n.º 3
0
 public ActionResult Delete(Guid id)
 {
     _iCustomerTypeService.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }