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)); }