public IActionResult ViewApplications(string Viewtype) { lstViewapplications = new List <ViewapplicationsDTO>(); try { lstViewapplications = ObjApproval.ViewApplications(Viewtype, Con); } catch (Exception ex) { throw new FinstaAppException(ex.ToString()); } return(Ok(lstViewapplications)); }