/// <summary> /// Поиск накладных продаж за период /// </summary> /// <param name="firstDate">Дата начало периода</param> /// <param name="lastDate">Дата конца периода</param> /// <returns>Список накладных продаж</returns> public static IEnumerable <SalesInvoice> SalesInvoices(DateTime firstDate, DateTime lastDate) { var x = from m in SalesInvoiceMethods.Outpoot() where (m.Date.Value.Date >= firstDate.Date && m.Date.Value.Date <= lastDate.Date) select m; return(x); }
/// <summary> /// Поиск накладных продаж по дате /// </summary> /// <param name="date">Дата</param> /// <returns>Список накладных продаж</returns> public static IEnumerable <SalesInvoice> SalesInvoices(DateTime date) { var x = from m in SalesInvoiceMethods.Outpoot() where m.Date.Value.Date == date.Date select m; return(x); }
// GET: SalesInvoice public ActionResult Index() { return(View(SalesInvoiceMethods.Outpoot().ToList())); }