public dynamic addCity(CityModel obj) { dynamic objdata = new ExpandoObject(); try { int result = _dbCityDalHelper.addCity(obj); if (result > 0) { objdata.success = true; objdata.message = "City Added Successfully !!!"; } else { objdata.success = false; objdata.message = "Something Went Wrong !!!"; } return(objdata); } catch (Exception ex) { objdata.success = false; objdata.message = ex.Message.ToString(); throw; } }