コード例 #1
0
        //GET:About
        public ActionResult ShowProfile()
        {
            evernoteUser currentUser = Session["login"] as evernoteUser;
            userManager  um          = new userManager();
            businessLayerResult <evernoteUser> layerResult = um.getUserById(currentUser.id);

            if (layerResult.errorMessage.Count > 0)
            {
                errorViewModel errorNotifyObj = new errorViewModel()
                {
                    title = "Hata Oluştu",
                    items = layerResult.errorMessage
                };

                return(View("error", errorNotifyObj));
            }
            return(View(layerResult.result));
        }