Esempio n. 1
0
        public Users GetUser(Users user, UsersDto usersDto)
        {
            user.Degree         = usersDto.Degree;
            user.EmailId        = usersDto.EmailId;
            user.FirstName      = usersDto.FirstName;
            user.Id             = usersDto.Id;
            user.LastName       = usersDto.LastName;
            user.MiddleName     = usersDto.MiddleName;
            user.ModifiedBy     = usersDto.ModifiedBy;
            user.ModifiedDate   = usersDto.ModifiedDate;
            user.Password       = usersDto.Password;
            user.RoleId         = usersDto.RoleId;
            user.Specialization = usersDto.Specialization;
            user.UserName       = usersDto.UserName;
            user.ModifiedDate   = DateTime.UtcNow;
            user.ModifiedBy     = usersDto.ModifiedBy;

            return(user);
        }
Esempio n. 2
0
        public UsersDto GetUsersDto(Users user)
        {
            var userDto = new UsersDto();

            userDto.Degree         = user.Degree;
            userDto.EmailId        = user.EmailId;
            userDto.FirstName      = user.FirstName;
            userDto.Id             = user.Id;
            userDto.LastName       = user.LastName;
            userDto.MiddleName     = user.MiddleName;
            userDto.ModifiedBy     = user.ModifiedBy;
            userDto.ModifiedDate   = user.ModifiedDate;
            userDto.Password       = user.Password;
            userDto.RoleId         = user.RoleId;
            userDto.Specialization = user.Specialization;
            userDto.UserName       = user.UserName;

            return(userDto);
        }