Exemple #1
0
 public void AddRate(ApiRateClientResponseModel item)
 {
     if (!this.Rates.Any(x => x.Id == item.Id))
     {
         this.Rates.Add(item);
     }
 }
Exemple #2
0
        public virtual ApiRateClientRequestModel MapClientResponseToRequest(
            ApiRateClientResponseModel response)
        {
            var request = new ApiRateClientRequestModel();

            request.SetProperties(
                response.AmountPerMinute,
                response.TeacherId,
                response.TeacherSkillId);
            return(request);
        }
Exemple #3
0
        public virtual ApiRateClientResponseModel MapClientRequestToResponse(
            int id,
            ApiRateClientRequestModel request)
        {
            var response = new ApiRateClientResponseModel();

            response.SetProperties(id,
                                   request.AmountPerMinute,
                                   request.TeacherId,
                                   request.TeacherSkillId);
            return(response);
        }