예제 #1
0
        private void Create(string name)
        {
            var result = roleBll.GetRoleByName(name);

            if (result.Count() != 0)
            {
                logger.Error("Role is already in use");
                throw new HttpException(411, "Role is already in use");
            }
            logger.Trace("Success");
            roleBll.AddNewRole(name);
        }