public IHttpActionResult GetBasisForRecommendation(AccountDetails Param) { JSON JSONReturn = new JSON(); BasisForRecommendation basisForRecommendation = new BasisForRecommendation(); basisForRecommendation = DatabaseAccess.GetBasisForRecommendation(Param); JSONReturn.Data = basisForRecommendation; JSONReturn.Message = "Success"; return(Json(JSONReturn)); }
public IHttpActionResult AddNewBasisForRecommendation(BasisForRecommendation Param) { JSON JSONReturn = new JSON(); DatabaseAccess.AddNewBasisForRecommendation(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 UpdateBasisForRecommendation(BasisForRecommendation Param) { JSON JSONReturn = new JSON(); BasisForRecommendation basisForRecommendation = new BasisForRecommendation(); DatabaseAccess.UpdateBasisForRecommendation(Param); JSON returnJSON = new JSON(); try { JSONReturn.Data = basisForRecommendation; JSONReturn.Message = connectionString; } catch (Exception ex) { returnJSON.Message = ex.Message; return(Json(returnJSON)); } return(Json(JSONReturn)); }