public JsonResult Delete(string source, int id)
        {
            EventSource eventSource = (EventSource)Enum.Parse(typeof(EventSource), source, true);

            switch (eventSource)
            {
            case EventSource.Forex:
                return(Json(Functions.OutPutResponse(true, "Record deleted successfully", _forexmodel.Delete(id)), JsonRequestBehavior.AllowGet));

            case EventSource.Payment:
                return(Json(Functions.OutPutResponse(true, "Record deleted successfully", _paymentmodel.Delete(id)), JsonRequestBehavior.AllowGet));

            default:
                throw new Exception("Invalid Event Source in Delete operation..!!");
            }
        }