public ActionResult Add(Master_Menu model)
 {
     try
     {
         IFunctionService svc = new FunctionService();
         model.MenuID = FunctionService.GenerateID();
         var result = svc.Add(model);
         this.AddNotification("Your Data Has Been Successfully Saved. ", NotificationType.SUCCESS);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         general.AddLogError("Function Add", ex.Message, ex.StackTrace);
         this.AddNotification("ID exist", NotificationType.ERROR);
         return(View("~/Views/Master/Function/Add.cshtml"));
     }
 }