public async Task <IEnumerable <Ac_Mtr_Agreement_Product_Info> > List(Ac_Mtr_Agreement_Product_Info model) { using (var connection = new SqlConnection(ConnectionString)) { var result = connection.Query <Common.Ac_Mtr_Agreement_Product_Info> ("PA_CON_AC_MTR_AGREEMENT_DETAILS_RESUME_GET", param: new { P_PK_AC_TRADE_AGREEMENT = model.Pk_Ac_Trade_Agreement, P_BEHAVIOR = model.Behavior, P_PAGE_NUMBER = model.Page_Number, P_ROWS_PAGE = model.Rows_Page, P_SEARCH_TEXT = model.Search_Text }, commandType: CommandType.StoredProcedure); return(await Task.FromResult <IEnumerable <Ac_Mtr_Agreement_Product_Info> >(result.ToList())); } }
public async Task <IEnumerable <Ac_Mtr_Agreement_Product_Info> > DeleteScalar(Ac_Mtr_Agreement_Product_Info model) { using (var connection = new SqlConnection(ConnectionString)) { var result = connection.Query < Common.Ac_Mtr_Agreement_Product_Info> ("PA_CON_AC_MTR_AGREEMENT_DETAILS_RESUME_DELETE", param: new { P_PK_CAT_AGREEMENT_DETAILS_RESUME = model.Pk_Cat_Agreement_Details_Resume, P_PK_AC_TRADE_AGREEMENT = model.Pk_Ac_Trade_Agreement, P_PK_GLB_PRODUCTS = model.Pk_Glb_Products, P_CREATION_USER = model.Creation_User, P_MODIFICATION_DATE = model.Modification_Date, P_MODIFICATION_USER = model.Modification_User }, commandType: CommandType.StoredProcedure); return(await Task.FromResult <IEnumerable <Ac_Mtr_Agreement_Product_Info> >(result.ToList())); } }