public IHttpActionResult GetOtherCollateral(AccountDetails Param) { JSON JSONReturn = new JSON(); OtherCollateral otherCollateral = new OtherCollateral(); otherCollateral = DatabaseAccess.GetOtherCollateral(Param); JSONReturn.Data = otherCollateral; JSONReturn.Message = "Success"; return(Json(JSONReturn)); }
public IHttpActionResult AddNewOtherCollateral(OtherCollateral Param) { JSON JSONReturn = new JSON(); DatabaseAccess.AddNewOtherCollateral(Param); JSON returnJSON = new JSON(); try { //JSONReturn.Data = clientDetails; //JSONReturn.Message = connectionString; } catch (Exception ex) { returnJSON.Message = ex.Message; return(Json(returnJSON)); } return(Json(JSONReturn)); }
public IHttpActionResult UpdateOtherCollateral(OtherCollateral Param) { JSON JSONReturn = new JSON(); OtherCollateral otherCollateral = new OtherCollateral(); DatabaseAccess.UpdateOtherCollateral(Param); JSON returnJSON = new JSON(); try { JSONReturn.Data = otherCollateral; JSONReturn.Message = connectionString; } catch (Exception ex) { returnJSON.Message = ex.Message; return(Json(returnJSON)); } return(Json(JSONReturn)); }