public BE.Click GetClickByClickGuid(Guid clickGuid) { try { DA.ClickGateway gateway = new DA.ClickGateway(); BE.Click result = new BE.Click(); result = gateway.GetByPK(clickGuid).ToBusinessEntity(); return result; } catch (Exception ex) { throw ex; } }
public static BE.Click ToBusinessEntity(this DC.Click dcClick) { BE.Click clickResult = new BE.Click() { ClickGuid = dcClick.ClickGuid, FacilityGuid = dcClick.FacilityGuid, ListingTypeGuid = dcClick.ListingTypeGuid, TimeStamp = dcClick.TimeStamp, }; return clickResult; }