Beispiel #1
0
        public async static Task <PostProfileBindingModel> ObterPostProfileBindingModel(this IEntityService <Pessoa> service, IMongoService mongoService)
        {
            var profile = new PostProfileBindingModel
            {
                Ativo            = true,
                CodigoEmpresas   = new string[0],
                Email            = string.Empty,
                FotoUrl          = string.Empty,
                FotoUrlSource    = string.Empty,
                Funcao           = string.Empty,
                Nome             = string.Empty,
                PermissaoOptions = await mongoService.GetMongoOptions <KeyValueString>(collection : PERMISSOES),
                Permissoes       = new string[0],
                Sobrenome        = string.Empty,
                Telefone         = string.Empty
            };

            return(profile);
        }