Exemplo n.º 1
0
        public AppRoleDataObject GetRoleByName(string name)
        {
            AppRole           AppRole           = appRoleRepository.Find(Specification <AppRole> .Eval(cr => cr.Name.Equals(name)));
            AppRoleDataObject appRoleDataObject = AutoMapper.Mapper.Map <AppRole, AppRoleDataObject>(AppRole);

            return(appRoleDataObject);
        }
Exemplo n.º 2
0
        public AppRoleDataObject GetRoleByKey(Guid id)
        {
            AppRole           appRole           = appRoleRepository.GetByKey(id);
            AppRoleDataObject appRoleDataObject = AutoMapper.Mapper.Map <AppRole, AppRoleDataObject>(appRole);

            return(appRoleDataObject);
        }