Ejemplo n.º 1
0
 public void DeleteClick(BE.Click entity)
 {
     try
     {
         DA.ClickGateway gateway = new DA.ClickGateway();
         gateway.Delete(entity.ClickGuid);
     }
     catch (Exception ex) { throw ex; }
 }
Ejemplo n.º 2
0
 public List<BE.Click> GetClicksForFacilityByFacilityGuid(Guid facilityGuid)
 {
     try
     {
         DA.ClickGateway gateway = new DA.ClickGateway();
         List<BE.Click> result = new List<BE.Click>();
         result = gateway.GetForFacilityByFacilityGuid(facilityGuid).ToBusinessEntitiesList();
         return result;
     }
     catch (Exception ex) { throw ex; }
 }
Ejemplo n.º 3
0
 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; }
 }
Ejemplo n.º 4
0
 public List<BE.Click> GetAllClickWithUndefined()
 {
     try
     {
         DA.ClickGateway gateway = new DA.ClickGateway();
         List<BE.Click> result = new List<BE.Click>();
         result = gateway.GetAllWithUndefined().ToBusinessEntitiesList();
         return result;
     }
     catch (Exception ex) { throw ex; }
 }
Ejemplo n.º 5
0
 public BE.Click InsertClick(BE.Click entity)
 {
     //@@NEW - removed try/catch. insert returns DA entity (with new data). this method now returns an entity.
     DA.ClickGateway gateway = new DA.ClickGateway();
     DA.Click result = gateway.Insert(entity.ToDataEntity());
     return result.ToBusinessEntity();
 }
Ejemplo n.º 6
0
 public List<BE.Click> GetClicksForListingTypeByListingTypeGuid(Guid listingTypeGuid)
 {
     try
     {
         DA.ClickGateway gateway = new DA.ClickGateway();
         List<BE.Click> result = new List<BE.Click>();
         result = gateway.GetForListingTypeByListingTypeGuid(listingTypeGuid).ToBusinessEntitiesList();
         return result;
     }
     catch (Exception ex) { throw ex; }
 }
Ejemplo n.º 7
0
 public void UpdateClick(BE.Click entity)
 {
     try
     {
         DA.ClickGateway gateway = new DA.ClickGateway();
         gateway.Update(entity.ToDataEntity());
     }
     catch (Exception ex) { throw ex; }
 }