public JsonResult Add(Quotation quo) { try { _quotationService.Create(quo); return(Json(new { success = true, message = "Add Successfully" }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { success = false, message = ex.ToString() }, JsonRequestBehavior.AllowGet)); } }