Exemplo n.º 1
0
        public ActionResult Index(string farmId)
        {
            var userName = this.User.Identity.Name;

            if (string.IsNullOrWhiteSpace(userName) || string.IsNullOrWhiteSpace(farmId))
            {
                throw new NullReferenceException();
            }

            var model = TableStorageService.Get(userName, farmId);

            return(View("Index", model));
        }