public ActionResult GetSerialSamples(Guid?actReceptionId) { if (actReceptionId != null) { var result = repository.GetSeriaProductSeries(actReceptionId).AsEnumerable().ToArray(); return(Json(new { isSuccess = true, list = result })); } return(Json(new { isSuccess = false })); }