public async Task <IActionResult> addCertification([FromBody] AddCertificationViewModel certificate) { try { var result = await _profileService.AddNewCertification(certificate); if (result == false) { return(Json(new { Success = false, data = "can not add the certificate." })); } return(Json(new { Success = true, data = "add successful" })); } catch (Exception e) { return(Json(new { Success = false, data = "error" })); } }