Exemple #1
0
        public JsonResult GraphOlustur(GraphDTO graph)
        {
            ResultDTO sonuc = new ResultDTO();

            try
            {
                var path = Path.Combine(Server.MapPath(uploadFolder), graph.excel.name);
                sonuc = _graphManager.GenerateGraph(graph, path);
                return(Json(new { Sonuc = sonuc.Result, Mesaj = sonuc.Message, Nesne = sonuc.Object, Exception = sonuc.Exception.ToString() }, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(new { Sonuc = sonuc.Result, Mesaj = ex.Message, Nesne = sonuc.Object, Exception = ex.ToString() }, JsonRequestBehavior.AllowGet));
            }
        }