public void AddCallType(ApiCallTypeClientResponseModel item) { if (!this.CallTypes.Any(x => x.Id == item.Id)) { this.CallTypes.Add(item); } }
public virtual ApiCallTypeClientRequestModel MapClientResponseToRequest( ApiCallTypeClientResponseModel response) { var request = new ApiCallTypeClientRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiCallTypeClientResponseModel MapClientRequestToResponse( int id, ApiCallTypeClientRequestModel request) { var response = new ApiCallTypeClientResponseModel(); response.SetProperties(id, request.Name); return(response); }
public void SetCallTypeIdNavigation(ApiCallTypeClientResponseModel value) { this.CallTypeIdNavigation = value; }