예제 #1
0
 public ActionResult RankCreate(RankDTO data)
 {
     try
     {
         _rankService.InsertRank(data);
         ViewBag.success = String.Format("New Rank Added");
         ModelState.Clear();
         return(View());
     }
     catch (Exception Ex)
     {
         ViewBag.error      = Ex.Message;
         TempData["Danger"] = Ex.Message;
         return(View());
     }
 }