public void AddEvent(ApiEventClientResponseModel item) { if (!this.Events.Any(x => x.Id == item.Id)) { this.Events.Add(item); } }
public virtual ApiEventClientRequestModel MapClientResponseToRequest( ApiEventClientResponseModel response) { var request = new ApiEventClientRequestModel(); request.SetProperties( response.Address1, response.Address2, response.CityId, response.Date, response.Description, response.EndDate, response.Facebook, response.Name, response.StartDate, response.Website); return(request); }