/// <summary> /// Trae todas las noticias del día y del Hotel /// </summary> /// <param name="leadSource">Hotel en el que se cargo el modulo</param> /// <param name="date">Fecha currente</param> /// <history> /// [jorcanche] created 18/04/2016 Created /// [jorcanche] se agrego asincronia 08/07/2016 /// </history> public static async Task <List <NoticeShort> > GetNotices(string leadSource, DateTime?date) { return(await Task.Run(() => { using (var dbContext = new IMEntities(ConnectionHelper.ConnectionString())) { return dbContext.USP_OR_GetNotices(leadSource, date).ToList(); } })); }