public static iAF.Entities.Url MapResponse(iAFWebHost.Entities.Url entity) { iAF.Entities.Url model = new iAF.Entities.Url(); model.Id = entity.Id; model.Href = entity.Href; model.HrefActual = entity.HrefActual; model.Flag = entity.Flag; model.Title = entity.Title; model.Summary = entity.Summary; model.UtcDate = entity.UtcDate; model.ShortId = entity.ShortId; model.HttpResponseCode = entity.HttpResponseCode; model.HttpTimeStamp = entity.HttpTimeStamp; model.HttpContentLength = entity.HttpContentLength; model.HttpContentType = entity.HttpContentType; model.HttpResponseIP = entity.HttpResponseIP; if (entity.Users != null) { model.Users = entity.Users; } if (entity.Tags != null) { model.Tags = entity.Tags; } return(model); }
public static iAF.Entities.Url MapResponse(iAFWebHost.Entities.Url entity) { iAF.Entities.Url model = new iAF.Entities.Url(); model.Id = entity.Id; model.Href = entity.Href; model.HrefActual = entity.HrefActual; model.Flag = entity.Flag; model.Title = entity.Title; model.Summary = entity.Summary; model.UtcDate = entity.UtcDate; model.ShortId = entity.ShortId; model.HttpResponseCode = entity.HttpResponseCode; model.HttpTimeStamp = entity.HttpTimeStamp; model.HttpContentLength = entity.HttpContentLength; model.HttpContentType = entity.HttpContentType; model.HttpResponseIP = entity.HttpResponseIP; if (entity.Users != null) model.Users = entity.Users; if (entity.Tags != null) model.Tags = entity.Tags; return model; }