Example #1
0
 public void AddSpace(ApiSpaceResponseModel item)
 {
     if (!this.Spaces.Any(x => x.Id == item.Id))
     {
         this.Spaces.Add(item);
     }
 }
        public virtual ApiSpaceRequestModel MapResponseToRequest(
            ApiSpaceResponseModel response)
        {
            var request = new ApiSpaceRequestModel();

            request.SetProperties(
                response.Description,
                response.Name,
                response.StudioId);
            return(request);
        }
        public virtual ApiSpaceResponseModel MapRequestToResponse(
            int id,
            ApiSpaceRequestModel request)
        {
            var response = new ApiSpaceResponseModel();

            response.SetProperties(id,
                                   request.Description,
                                   request.Name,
                                   request.StudioId);
            return(response);
        }