Example #1
0
 public void AddStudio(ApiStudioResponseModel item)
 {
     if (!this.Studios.Any(x => x.Id == item.Id))
     {
         this.Studios.Add(item);
     }
 }
Example #2
0
        public virtual ApiStudioRequestModel MapResponseToRequest(
            ApiStudioResponseModel response)
        {
            var request = new ApiStudioRequestModel();

            request.SetProperties(
                response.Address1,
                response.Address2,
                response.City,
                response.Name,
                response.StateId,
                response.Website,
                response.Zip);
            return(request);
        }
Example #3
0
        public virtual ApiStudioResponseModel MapRequestToResponse(
            int id,
            ApiStudioRequestModel request)
        {
            var response = new ApiStudioResponseModel();

            response.SetProperties(id,
                                   request.Address1,
                                   request.Address2,
                                   request.City,
                                   request.Name,
                                   request.StateId,
                                   request.Website,
                                   request.Zip);
            return(response);
        }