Exemplo n.º 1
0
 public void AddUser(ApiUserResponseModel item)
 {
     if (!this.Users.Any(x => x.Id == item.Id))
     {
         this.Users.Add(item);
     }
 }
Exemplo n.º 2
0
        public virtual ApiUserRequestModel MapResponseToRequest(
            ApiUserResponseModel response)
        {
            var request = new ApiUserRequestModel();

            request.SetProperties(
                response.Password,
                response.Username);
            return(request);
        }
Exemplo n.º 3
0
        public virtual ApiUserResponseModel MapRequestToResponse(
            int id,
            ApiUserRequestModel request)
        {
            var response = new ApiUserResponseModel();

            response.SetProperties(id,
                                   request.Password,
                                   request.Username);
            return(response);
        }