public IHttpActionResult GetCode() { Int64 code; InvoicesB invoiceB = new InvoicesB(); code = invoiceB.GetCode(); return(Ok(code)); }
// GET: Client Code public JsonResult GetCode(string id) { var code = invoicesB.GetCode(); return(Json(code, JsonRequestBehavior.AllowGet)); }