public void AddCommunityActionTemplate(ApiCommunityActionTemplateResponseModel item) { if (!this.CommunityActionTemplates.Any(x => x.Id == item.Id)) { this.CommunityActionTemplates.Add(item); } }
public virtual ApiCommunityActionTemplateRequestModel MapResponseToRequest( ApiCommunityActionTemplateResponseModel response) { var request = new ApiCommunityActionTemplateRequestModel(); request.SetProperties( response.ExternalId, response.JSON, response.Name); return(request); }
public virtual ApiCommunityActionTemplateResponseModel MapRequestToResponse( string id, ApiCommunityActionTemplateRequestModel request) { var response = new ApiCommunityActionTemplateResponseModel(); response.SetProperties(id, request.ExternalId, request.JSON, request.Name); return(response); }