Exemplo n.º 1
0
        public JsonResult GetPartner(string Id)
        {
            MasterRepository MasterRepository = new MasterRepository();
            var result = MasterRepository.GetDetailById(Id);

            if (result != null)
            {
                return(new JsonResult {
                    Data = result[0], JsonRequestBehavior = JsonRequestBehavior.AllowGet
                });
            }
            return(null);
        }