public IActionResult AddNote(int orderGroupId, string note) { var order = _orderRepository.Load <IPurchaseOrder>(orderGroupId); var orderNote = _ordersService.AddNote(order, "Customer Manual Note", note); _orderRepository.Save(order); return(Json(orderNote)); }