Exemple #1
0
        public static object List(string langCode)
        {
            ModelResponse mr;

            var mr1 = Mgr.ListByOrgContact(Utils.LoggedUser, null, (int)Utils.GetLanguage(langCode), true);

            if (mr1.Status == ResponseStatus.Success)
            {
                var mr2 = Mgr.GetTrainingList(Utils.LoggedUser);
                mr = mr2.Status == ResponseStatus.Success
                    ? new ModelResponse(0, new [] { mr1.Data, mr2.Data })
                    : mr2;
            }
            else
            {
                mr = mr1;
            }

            return(Utils.ServiceResponse(PageCode, mr));
        }
        public static object Get(long id, string langCode)
        {
            var mr = Mgr.ListByOrgContact(Utils.LoggedUser, id, (int)Utils.GetLanguage(langCode));

            return(Utils.ServiceResponse(PageCode, mr));
        }