/// <summary> /// Consulta los pagos de un recibo de regalos /// </summary> /// <param name="receipt"> Clave del recibo de regalos </param> /// <returns></returns> /// <history> /// [vipacheco] 08/04/2016 Created /// </history> public async static Task <List <GiftsReceiptPaymentShort> > GetGiftsReceiptPaymentsShort(int receipt) { List <GiftsReceiptPaymentShort> lstResult = new List <GiftsReceiptPaymentShort>(); await Task.Run(() => { using (var dbContext = new IMEntities(ConnectionHelper.ConnectionString())) { lstResult = dbContext.USP_OR_GetGiftsReceiptPayments(receipt).ToList(); } }); return(lstResult); }