public JsonResult EditNote(EditNoteFormData editedNote) { TransactionObject response = educationComplexManager.EditNote(editedNote); if (response.IsSuccess) { return(Json(new { IsSuccess = true })); } else { return(Json(new { IsSuccess = false, Error = response.Explanation })); } }
public IHttpActionResult EditNote(EditNoteFormData editedNote) { TransactionObject response = educationComplexManager.EditNote(editedNote); if (response.IsSuccess) { return(Ok()); } else { return(BadRequest(response.Explanation)); } }