public ActionResult GetStages(Guid?id) { var list = new List <Stage>(); if (id != null) { var batch = _batchService.GetById(id.GetValueOrDefault()); list.Add(new Stage() { Name = "Cría y Pre-Cría", Id = Stage.BREEDING }); } var result = list.Select(x => new { x.Id, x.Name }); return(Json(result, JsonRequestBehavior.AllowGet)); }