/// <summary> /// To export the data into various formats /// </summary> /// <param name="type"></param> /// <returns></returns> public ActionResult Export(string type) { try { var data = _bussProj.Export(); // Get the data to export //Helper.Export(type, Response, data, "Project"); // Create export content and embed into response return(View("Index")); } catch (Exception ex) { return(Content(ex.InnerException.Message)); } }