public HttpResponseMessage GetSalesRequest([FromBody] dynamic Params)
        {
            int LocationId = Convert.ToInt32(Params.LocationId);
            int CustomerId = Convert.ToInt32(Params.CustomerId);
            List <SalesRequestRegister> list = SalesRequestRegister.GetDetails(LocationId).Where(x => x.CustomerId == CustomerId).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([FromBody] int LocationId, [FromUri] int?CustomerId, [FromUri] DateTime?from, [FromUri] DateTime?to)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesRequestRegister.GetDetails(LocationId, CustomerId, from, to)));
 }
 public HttpResponseMessage Get([FromUri] int Id, [FromBody] int LocationId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, SalesRequestRegister.GetDetails(Id, LocationId)));
 }