Esempio n. 1
0
 public HttpResponseMessage KickbackContracts(Int64 merchantId,Int64 tasktypeId,Int64 workflowId,Int64 contractid)
 {
     using (GenerelService generalservice = new GenerelService())
     {
         generalservice.Kickback(merchantId,tasktypeId,workflowId,contractid);
         return this.Request.CreateResponse(HttpStatusCode.OK, new { });
     }
 }
Esempio n. 2
0
 public HttpResponseMessage SetSnooze([FromBody] SnoozeModel model)
 {
     using (GenerelService generalservice = new GenerelService())
     {
         generalservice.SetSnooze(model.contractId, model.snoozePercent, model.snoozeDate);
         return this.Request.CreateResponse(HttpStatusCode.OK, new { });
     }
 }
Esempio n. 3
0
        public HttpResponseMessage GetDocumentTypes(int type)
        {
            using (GenerelService generalservice = new GenerelService())
            {
                IList<GeneralModel> GeneralModellist = generalservice.FindBy(type);
                if (GeneralModellist != null)
                {
                    return this.Request.CreateResponse(HttpStatusCode.OK, GeneralModellist);
                }
                else
                {
                    return this.Request.CreateResponse(HttpStatusCode.OK, new { });
                }

            }
        }