public ActionResult OnPostApproves([FromBody] Entity.Normalise approve) { ResponseInfo respone = null; if (!string.IsNullOrWhiteSpace(HttpContext.Session.GetString("UserEmail").ToString())) { respone = _transactionRepository.ApproveNormaliseRecord(approve.RefNumb, HttpContext.Session.GetString("UserEmail")); } return(new JsonResult(respone)); }
public ActionResult OnPostDisapprove([FromBody] Entity.Normalise disapprove) { DataSet dstresult = new DataSet(); if (!string.IsNullOrWhiteSpace(HttpContext.Session.GetString("UserEmail").ToString())) { dstresult = _transactionRepository.DisapproveNormalise(HttpContext.Session.GetString("UserEmail"), disapprove.RefNumb, disapprove.reasons); } return(new JsonResult(dstresult)); }