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)); }
public HttpResponseMessage Get([FromUri] int Id, [FromBody] int LocationId) { return(Request.CreateResponse(HttpStatusCode.OK, GRNEntryRegister.GetDetails(Id, LocationId))); }