public HttpResponseMessage GetSupplierWiseDetails(dynamic Params)
        {
            int SupplierId = Convert.ToInt32(Params.SupplierId);
            int LocationId = Convert.ToInt32(Params.LocationId);

            return(Request.CreateResponse(HttpStatusCode.OK, PurchaseQuoteRegister.GetDetails(LocationId).Where(x => x.SupplierId == SupplierId)));
        }
        public HttpResponseMessage GetSupplierWiseDetailsConfirmed(dynamic Params)
        {
            int SupplierId = Convert.ToInt32(Params.SupplierId);
            int LocationId = Convert.ToInt32(Params.LocationId);
            List <PurchaseQuoteRegister> list = PurchaseQuoteRegister.GetDetails(LocationId).Where(x => x.SupplierId == SupplierId).Where(x => x.IsApproved).Where(x => x.Status == 0).ToList();

            list.ForEach(x => x.Products.RemoveAll(y => y.Status != 0));
            return(Request.CreateResponse(HttpStatusCode.OK, list));
        }
 public HttpResponseMessage Get([FromUri] int Id, [FromBody] int LocationId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, PurchaseQuoteRegister.GetDetails(Id, LocationId)));
 }
 public HttpResponseMessage Get([FromBody] int LocationId, [FromUri] int?SupplierId, [FromUri] DateTime?from, [FromUri] DateTime?to)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, PurchaseQuoteRegister.GetDetails(LocationId, SupplierId, from, to)));
 }