コード例 #1
0
 public static List <BrowseModel> executeLeaveRequsetBrowsequery(filtercriteria param)
 {
     using (MySqlConnection sqlconn = new MySqlConnection(connectionstring))
     {
         sqlconn.Open();
         return(sqlconn.Query <BrowseModel>("GetLeaveApprovalRequestForBrowse", param, commandType: CommandType.StoredProcedure).ToList());
     }
 }
コード例 #2
0
        // GET api/values
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "value1", "value2" };
        //}

        // GET api/values/5
        public List <BrowseModel> Get([FromBody] filtercriteria value)
        {
            Helpers.LeaveApproval leaveapproval = new Helpers.LeaveApproval();
            return(leaveapproval.BrowseLeaveRequest(value));
        }
コード例 #3
0
 public List <BrowseModel> BrowseLeaveRequest(filtercriteria value)
 {
     return(Repository.executeLeaveRequsetBrowsequery(value));
 }