Пример #1
0
        //POST:
        public ActionResult XoaPhongBan(int id)
        {
            logger.Info("Start controller....");
            int status = service.XoaPhongBan(id);

            if (status == 0)
            {
                logger.Info("Status: Success");
                return(RedirectToAction("Menu", "PhongBan"));
            }
            else
            {
                logger.Info("Status: Fail");
                return(Content("Xóa thất bại"));
            }
        }
Пример #2
0
 public bool XoaPhongBan(int id)
 {
     return(_phongBanService.XoaPhongBan(id));
 }