Exemple #1
0
        public ActionResult ManageRemark(NLSViewModel viewModel)
        {
            var req      = viewModel.MapTo <SaveNLSRequest>();
            var response = _nlsService.SaveNLS(req);

            return(Json(response));
        }
Exemple #2
0
        public ActionResult Manage(NLSViewModel viewModel)
        {
            var req      = viewModel.MapTo <SaveNLSRequest>();
            var response = _nlsService.SaveNLS(req);

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            if (response.IsSuccess)
            {
                return(RedirectToAction("Display", "Highlight"));
            }
            return(View("Manage", viewModel));
        }
Exemple #3
0
        public ActionResult Edit(NLSViewModel viewModel)
        {
            var req      = viewModel.MapTo <SaveNLSRequest>();
            var response = _nlsService.SaveNLS(req);

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            if (response.IsSuccess)
            {
                return(RedirectToAction("Index"));
            }
            return(View("Edit", viewModel));
        }