Esempio n. 1
0
 public void AddLinkLog(ApiLinkLogResponseModel item)
 {
     if (!this.LinkLogs.Any(x => x.Id == item.Id))
     {
         this.LinkLogs.Add(item);
     }
 }
        public virtual ApiLinkLogRequestModel MapResponseToRequest(
            ApiLinkLogResponseModel response)
        {
            var request = new ApiLinkLogRequestModel();

            request.SetProperties(
                response.DateEntered,
                response.LinkId,
                response.Log);
            return(request);
        }
        public virtual ApiLinkLogResponseModel MapRequestToResponse(
            int id,
            ApiLinkLogRequestModel request)
        {
            var response = new ApiLinkLogResponseModel();

            response.SetProperties(id,
                                   request.DateEntered,
                                   request.LinkId,
                                   request.Log);
            return(response);
        }