public JsonResult GetGRNList(string siNo) { var GRNs = new List <GRNViewModel>(); GRNs.AddRange(_receiveService.FindBy(f => f.ReceiptAllocation.IsFalseGRN && f.ReceiptAllocation.SINumber == siNo).Select(s => new GRNViewModel { Name = s.GRN, Id = s.ReceiveID })); return(Json(GRNs, JsonRequestBehavior.AllowGet)); }