public IActionResult Reminder(long id, DateTime reminder) { try { Note userToUpdate = _notesBL.Get(id); if (userToUpdate == null) { return(NotFound("The User record couldn't be found.")); } bool result = _notesBL.Reminder(userToUpdate, reminder); if (result == true) { return(this.Ok(new { success = true, message = "Successfully changed Reminder" })); } else { return(this.BadRequest(new { success = false, message = "Failed Changing Reminder" })); } } catch (Exception ex) { return(this.Ok(new { success = false, message = ex.Message })); } }