コード例 #1
0
        public IHttpActionResult GetApprovingOfficerAvailbility([FromUri] string AssignTo)
        {
            var result = _clsApproval.FnGetApprovingOfficerAvailbility(AssignTo);

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);

            return(Ok(result));
        }
コード例 #2
0
        public ActionResult GetApprovingOfficerAvailbility(string ReassignTo)
        {
            var result = _clsApproval.FnGetApprovingOfficerAvailbility(ReassignTo);
            var res    = new JsonResult()
            {
                Data = result, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };

            return(res);
        }