public async Task <ServiceResponeCode> UpdateAsync(int id, OrderStatus entityToUpdate) { var current = _orderStatusRepository.GetByIdAsync(id); if (current != null) { await _orderStatusRepository.UpdateAsync(id, entityToUpdate); return(ServiceResponeCode.OK); } return(ServiceResponeCode.NOT_FOUND); }