Ejemplo n.º 1
0
        /// <summary>
        ///  Get the List of Work Orders
        /// </summary>
        /// <param name="from">from </param>
        /// <param name="to"></param>
        /// <returns></returns>
        ///

        public List <WorkOrderListModel> DameData(DateTime?from, DateTime?to)
        {
            return(db.GetListFromSp <WorkOrderListModel>("GetWorkOrders",
                                                         new List <SqlParameter>()
            {
                new SqlParameter("@From", System.Data.SqlDbType.DateTime),
                new SqlParameter("@To", System.Data.SqlDbType.DateTime)
            },
                                                         DateTime.Now,
                                                         DateTime.Now
                                                         ));
        }
Ejemplo n.º 2
0
 public List <Product> GetAll() => db.GetListFromSp <Product>("Products_GetAll", null, null);
Ejemplo n.º 3
0
 public List <Brand> GetAll() => db.GetListFromSp <Brand>("Brands_GetAll", null, null);
 public List <Supplier> GetAll() => db.GetListFromSp <Supplier>("Suppliers_GetAll", null, null);
 public List <ServiceOrderStatus> GetAll() => db.GetListFromSp <ServiceOrderStatus>("ServiceOrderStatus_GetAll", null, null);
Ejemplo n.º 6
0
 public List <Insurance> GetAll() => db.GetListFromSp <Insurance>("Insurances_GetAll", null, null);
Ejemplo n.º 7
0
 //  Get all Service orders
 public List <ServiceOrderListModel> GetAll() => db.GetListFromSp <ServiceOrderListModel>("ServiceOrders_GetAll", null, null);