Example #1
0
        public RoleGroupModel AddRoleGroup(RoleGroupModel model)
        {
            var script = string.Format("INSERT INTO [RoleGroup](RoleGroupName,Description) VALUES('{0}','{1}');SELECT @@IDENTITY;", model.RoleGroupName, model.Description);

            model.Id = _dbConnector.GetIntegerValue(new SqlCommand(script));

            DataStorageService.AddRoleGroupRole(model);

            return(model);
        }