public int Update(int Id, string Name, string PermissionsIds, string PermissionsNames, int IsUse)
        {
            Roles t = new Roles
            {
                Id               = Id,
                Name             = Name,
                PermissionsIds   = PermissionsIds,
                PermissionsNames = PermissionsNames,
                IsUse            = IsUse
            };
            var result = bll.Update(t);

            return(result);
        }
예제 #2
0
        public int EditRoles(int id, string roleName, string description, int orderID)
        {
            Roles roleInfo = new Roles();

            roleInfo.ID          = id;
            roleInfo.RoleName    = roleName;
            roleInfo.Description = description;
            roleInfo.OrderID     = orderID;
            try
            {
                return(roleBll.Update(roleInfo));
            }
            catch
            {
                return(-1);
            }
        }