コード例 #1
0
        public ActionResult Create(FormCollection collection)
        {
            try
            {
                User user = new User()
                {
                    Id = 1, Name = "John"
                };                                                //Use Identity to get user
                Album album = new Album(user, collection.GetValue("Test").ToString());

                var status = _servicefacade.CreateAlbum(album);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }