Пример #1
0
 public void AddEventStatus(ApiEventStatusResponseModel item)
 {
     if (!this.EventStatuses.Any(x => x.Id == item.Id))
     {
         this.EventStatuses.Add(item);
     }
 }
        public virtual ApiEventStatusRequestModel MapResponseToRequest(
            ApiEventStatusResponseModel response)
        {
            var request = new ApiEventStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiEventStatusResponseModel MapRequestToResponse(
            int id,
            ApiEventStatusRequestModel request)
        {
            var response = new ApiEventStatusResponseModel();

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