EditUserModel.cs

49 lines | 1.04 kB Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Model.Entities.Users;

namespace Model.ViewModel
{

    public enum EnumChanges
    {
        NoChange,
        Update,
        Create,
        Delete
    }

    public class RootDirInfo
    {
        public int ID { set; get; }
        public string Name { set; get; }

        public bool CanDownload { set; get; }
        public bool CanUpload { set; get; }
        public bool CanOpen { set; get; }
    }

    public class GroupInfo
    {
        public int ID { set; get; }
        public string Name { set; get; }
        public bool EnterInGroup { set; get; }


        public List<RootDirInfo> RootDirInfos { set; get; }
    }

    public class EditUserModel
    {
        public int ID { set; get; }
        public string Name { set; get; }
        public string Password { set; get; }
        public bool Active { set; get; }
        public EnumChanges Changes { set; get; }

        public List<GroupInfo> Groups { set; get; } = new List<GroupInfo>();
    }
}