예제 #1
0
        public HttpResponseMessage GetSupplierWiseDetailsConfirmed(dynamic Params)
        {
            int SupplierId = Convert.ToInt32(Params.SupplierId);
            int LocationId = Convert.ToInt32(Params.LocationId);
            List <GRNEntryRegister> list = GRNEntryRegister.GetDetails(LocationId).Where(x => x.SupplierId == SupplierId).Where(x => x.Status == false).ToList();

            list.ForEach(x => x.Products.RemoveAll(y => y.Status != 0));
            return(Request.CreateResponse(HttpStatusCode.OK, list));
        }
예제 #2
0
 public HttpResponseMessage Get([FromUri] int Id, [FromBody] int LocationId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, GRNEntryRegister.GetDetails(Id, LocationId)));
 }