private async Task <IDetails> GetDetails(IIndexEntity item, IDetails super)
        {
            if (super.CommentsEnabled)
            {
                super.SetComments(await Di.GetInstance <IJsonStorage <Comment> >().Get(item.CommonIdentifier));
            }

            return(super);
        }
Exemplo n.º 2
0
        public async Task <IDetails> GetPersonDetails(IIndexEntity item, string environment, Team teamForLoggedInUser)
        {
            var p = new PersonDetails()
            {
                HprJson             = GetJson("hprData"),
                PregJson            = GetJson("pregData"),
                FastlegeJson        = null,
                FastlegePasientJson = null
            };

            p.Surveillances = new List <Surveillance>();
            //await p.SetSurveillanceInfo(_di, item, teamForLoggedInUser);
            return(p);
        }
        public virtual async Task <IDetails> GetBusinessDetails([ModelBinder(typeof(BusinessIndexEntityModelBinder))] IIndexEntity item, string environment)
        {
            var super = await _detailsProvider.GetBusinessDetails(item, environment, GetTeam());

            return(await GetDetails(item, super));
        }
Exemplo n.º 4
0
 public async Task <IDetails> GetBusinessDetails(IIndexEntity item, string environment, Team teamForLoggedInUser)
 {
     return(null);
 }