Exemplo n.º 1
0
        public ActionResult Detail(string organizationId)
        {
            try
            {
                RequestResult requestResult = OrganizationDataAccessor.GetDetailViewModel(new Guid(organizationId), Session["Account"] as Account);

                if (requestResult.IsSuccess)
                {
                    return(PartialView("_Detail", requestResult.Data));
                }
                else
                {
                    return(PartialView("_Error", requestResult.Error));
                }
            }
            catch (Exception e)
            {
                var error = new Error(MethodBase.GetCurrentMethod(), e);

                Logger.Log(error);

                return(PartialView("_Error", error));
            }
        }