Exemple #1
0
        public static LookupViewModel MapToLookupViewModel(this Language model)
        {
            var viewModel = new LookupViewModel();

            viewModel.Value = model.Id;
            viewModel.Text  = model.Title;
            return(viewModel);
        }
Exemple #2
0
        public static LookupViewModel MapToLookupViewModel(this User model)
        {
            var viewModel = new LookupViewModel();

            viewModel.Value = model.Id;

            //ke ja vrati na tekovniot jazik na najaveniot korisnik
            viewModel.Text = ResourceManager.GetMultilangValue(model.UserName);

            //var externalInstitution = model as ExternalInstitution;
            //if (externalInstitution != null)
            //{
            //    viewModel.AdditionalInfo = externalInstitution.AllMunicipalities.ToString().ToLower();
            //}

            return(viewModel);
        }