public IActionResult ChangeColor(int noteId, string color) { try { var result = manager.ChangeColor(noteId, color); if (result) { return(this.Ok(new ResponseModel <int>() { Status = true, Masseage = "Note Color Changed.", Data = noteId })); } else { return(this.BadRequest(new { Status = false, Message = "Somethin went wrong." })); } } catch (Exception ex) { return(this.NotFound(new { Status = false, Message = ex.Message })); } }