Example #1
0
        public static VMUser Parse(User model)
        {
            VMUser result = new VMUser
            {
                UserId        = model.UserId,
                FirstName     = model.FirstName,
                LastName      = model.LastName,
                Phone         = model.Phone,
                DateOfBirth   = model.DateOfBirth,
                Email         = model.Email,
                About         = model.About,
                LastLogin     = model.LastLogin,
                CreateDate    = model.CreateDate,
                IsActive      = model.IsActive,
                RoleId        = model.RoleId,
                StoreId       = model.StoreId,
                DepartmentId  = model.DepartmentId,
                SupervisorId  = model.SupervisorId,
                WorkingTypeId = model.WorkingTypeId,
                ImageUrl      = model.ImageUrl
            };

            return(result);
        }