示例#1
0
 public HttpResponseMessage DeleteRequisitionDetails(promotion_details promotionDetails)
 {
     try
     {
         var reqMaster = promotionRepository.DeletePromotionDetails(promotionDetails.promotion_details_id, promotionDetails.promotion_master_id);
         var formatter = RequestFormat.JsonFormaterString();
         return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation {
             output = "success", msg = "Delete Successfully."
         }, formatter));
     }
     catch (Exception ex)
     {
         var formatter = RequestFormat.JsonFormaterString();
         return(Request.CreateResponse(HttpStatusCode.OK, new Confirmation {
             output = "error", msg = ex.ToString()
         }, formatter));
     }
 }