public async Task <IActionResult> PutAsync(int id, [FromBody] SaveCourierResource resource)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.GetErrorMessages()));
            }

            var courier = _mapper.Map <SaveCourierResource, Courier>(resource);
            var result  = await _courierService.UpdateAsync(id, courier);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }

            var courierResource = _mapper.Map <Courier, CourierResource>(result.Courier);

            return(Ok(courierResource));
        }