public void EditNote(EditNoteFormData note) { var oldNote = GetNote(note.ID); oldNote.Description = note.Description; oldNote.EffectRate = note.EffectRate; oldNote.ResultPoint = note.ResultPoint; }
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)); } }
public TransactionObject EditNote(EditNoteFormData note) { TransactionObject response = new TransactionObject(); try { noteManager.EditNote(note); uow.Save(); response.IsSuccess = true; } catch (Exception ex) { response.IsSuccess = false; response.Explanation = base.GetExceptionMessage(ex); } return(response); }