public async Task <IActionResult> UpdateRecord(int id, [FromBody] SaveRecordResource saveRecordResource)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var record = await repository.GetRecord(id);

            if (record == null)
            {
                return(NotFound());
            }

            mapper.Map <SaveRecordResource, Record>(saveRecordResource, record);
            record.LastUpdate = DateTime.Now;

            await unitOfWork.CompleteAsync();

            record = await repository.GetRecord(record.Id);

            var result = mapper.Map <Record, RecordResource>(record);

            return(Ok(result));
        }