Ejemplo n.º 1
0
 public JsonResult CreateAddressForStateProvince(Address address, string stateprovinceid)
 {
     try
     {
         address.StateProvinceID = Convert.ToInt32(stateprovinceid);
         _searchProvider.AddUpdateDocument(address);
         return(Json(new { Result = "OK", Record = address }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }
Ejemplo n.º 2
0
 public JsonResult CreateAddressForStateProvince(Address address)
 {
     try
     {
         address.ModifiedDate = DateTime.UtcNow;
         address.rowguid      = Guid.NewGuid();
         _searchProvider.AddUpdateDocument(address);
         return(Json(new { Result = "OK", Record = address }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }