public RoleDefinition CreateRoleWithSectionId(RoleDefinition role, int sectionId) { var dalRole = Mapper.Map <DAL.Models.Role>(role); var newRole = DbEditorService.CreateRoleWithSectionId(dalRole, sectionId); return(Mapper.Map <UI.RoleDefinition>(newRole)); }