Ejemplo n.º 1
0
        public ActionResult UserActivate(Guid id)
        {
            BusinessLayerResult <User> businessLayerResult = _loginService.ActivateUser(id);

            if (businessLayerResult.Error.Count > 0)
            {
                PagesModel pagesModel = new PagesModel();
                pagesModel.Header = "Info";
                pagesModel.Items  = businessLayerResult.Error;
                pagesModel.Url    = "/Home/Index";
                return(View("InfoViewPage", pagesModel));
            }
            else
            {
                PagesModel pagesModel = new PagesModel();
                pagesModel.Header = "Success";
                pagesModel.Items  = new List <MessagesObj> {
                    new MessagesObj {
                        codes = MessagesCodes.Success, Messages = "İşlem Başarılı."
                    }
                };
                pagesModel.Url = "/Home/Index";
                return(View("InfoViewPage", pagesModel));
            }
        }