Example #1
0
        public ActionResult GetSamples2(Guid?Id)
        {
            SafetyAssessmentRepository repository = new SafetyAssessmentRepository();

            if (Id != null)
            {
                var result = repository.GetProductSeries(Id).AsEnumerable().ToArray();
                return(Json(new { isSuccess = true, data = result }));
            }

            return(Json(new { isSuccess = false }));
        }