public frmSize() { sizeBLL = new SizeBLL(dbHelper); productBLL = new ProductBLL(dbHelper); InitializeComponent(); dataGridView1.CellContentClick += dataGridView1_CellContentClick; }
public frmProduct() { productBLL = new ProductBLL(dbHelper); sizeBLL = new SizeBLL(dbHelper); productSubCategoryBLL = new ProductSubCategoryBLL(dbHelper); productCategoryBLL = new ProductCategoryBLL(dbHelper); InitializeComponent(); dataGridView1.CellContentClick += dataGridView1_CellContentClick; FillGrid(); FillCombo(); }
public HttpResponseMessage Post(HUTModels.Size model) { SizeBLL bll = new SizeBLL(); if (bll.Insert(model)) { return(new HttpResponseMessage(HttpStatusCode.OK)); } else { return(new HttpResponseMessage(HttpStatusCode.InternalServerError)); } }
public IHttpActionResult GetByDateRange(int personId, DateTime startDate, DateTime endDate) { SizeBLL bll = new SizeBLL(); var sizes = bll.GetByDateRange(personId, startDate, endDate); if (sizes == null) { return(Content(HttpStatusCode.NotFound, "Sizes do not exist.")); } else { return(Ok(sizes)); } }