示例#1
0
        public static Basic_Request ToDatabase(Basic_Request_Info info)
        {
            Basic_Request resource = new Basic_Request();

            resource.Id    = info.Id;
            resource.User  = info.User;
            resource.Movie = info.Movie;
            resource.State = info.State;
            resource.Note  = info.Note;
            resource.Time  = info.Time;

            return(resource);
        }
示例#2
0
        public static Basic_Request_Info ToModel(Basic_Request resource)
        {
            Basic_Request_Info info = new Basic_Request_Info();

            info.Id    = resource.Id;
            info.User  = (Guid)resource.User;
            info.Movie = (Guid)resource.Movie;
            info.State = resource.State;
            info.Note  = resource.Note;
            info.Time  = (DateTime)resource.Time;

            return(info);
        }