示例#1
0
 public async Task <int> Add_New_Cancelation_Request(Cancelation_Order obj)
 {
     using (var con = DbHelper.GetSqlConnection())
     {
         obj.Id = DbHelper.GetUniqueKey(); obj.Status = "Cancelation Request";
         return(await con.ExecuteAsync(Cancelation_Request_Add_NewSP, new { obj.Id, obj.Shipment_Id, obj.SKU, obj.Status, obj.Tracking_Id }, commandType : CommandType.StoredProcedure));
     }
 }
示例#2
0
        public async Task <JsonResult> Submit_Cancelation_Request([FromBody] Cancelation_Order obj)
        {
            var result = await _order_repo.Add_New_Cancelation_Request(obj);

            return(Json(result));
        }