Ejemplo n.º 1
0
 public tbl_PostageZones SavePostageZone(tbl_PostageZones postageZone)
 {
     return PostageZonesRepository.Save(postageZone);
 }
Ejemplo n.º 2
0
 public JsonResult SaveZone(tbl_PostageZones zone)
 {
     if (ModelState.IsValid)
     {
         tbl_PostageZones savedZone = ECommerceService.SavePostageZone(zone);
         if (savedZone != null)
         {
             var jsonZone = new PostageZoneModel
             {
                 PostageZoneID = savedZone.PostageZoneID,
                 PZ_DomainID = savedZone.PZ_DomainID,
                 PZ_Name = savedZone.PZ_Name,
                 PZ_IsDefault = savedZone.PZ_IsDefault
             };
             return Json(new { success = true, zone = jsonZone });
         }
     }
     return Json(new { success = false });
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new tbl_PostageZones object.
 /// </summary>
 /// <param name="postageZoneID">Initial value of the PostageZoneID property.</param>
 /// <param name="pZ_DomainID">Initial value of the PZ_DomainID property.</param>
 /// <param name="pZ_Name">Initial value of the PZ_Name property.</param>
 /// <param name="pZ_IsDefault">Initial value of the PZ_IsDefault property.</param>
 public static tbl_PostageZones Createtbl_PostageZones(global::System.Int32 postageZoneID, global::System.Int32 pZ_DomainID, global::System.String pZ_Name, global::System.Boolean pZ_IsDefault)
 {
     tbl_PostageZones tbl_PostageZones = new tbl_PostageZones();
     tbl_PostageZones.PostageZoneID = postageZoneID;
     tbl_PostageZones.PZ_DomainID = pZ_DomainID;
     tbl_PostageZones.PZ_Name = pZ_Name;
     tbl_PostageZones.PZ_IsDefault = pZ_IsDefault;
     return tbl_PostageZones;
 }
Ejemplo n.º 4
0
 public JsonResult DeleteZone(tbl_PostageZones postageZone)
 {
     ECommerceService.DeletePostageZone(postageZone.PostageZoneID);
     return Json(new { success = true, id = postageZone.PostageZoneID });
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_PostageZones EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_PostageZones(tbl_PostageZones tbl_PostageZones)
 {
     base.AddObject("tbl_PostageZones", tbl_PostageZones);
 }