Esempio n. 1
0
        public async Task <ReturnResultDto> DeleteReserve(Guid id)
        {
            ReturnResultDto ReturnResultDto = new ReturnResultDto();

            ReturnResultDto.Action = "Delete Reserve";

            Reserve Reserve = await _ReserveRepository.ReadAsync(id);

            if (Reserve == null)
            {
                ReturnResultDto.Inconsistencies.Add(
                    "Reserve não encontrado");
            }
            else
            {
                await _ReserveRepository.DeleteAsync(id);

                await _ReserveRepository.SaveChangesAsync();
            }
            return(ReturnResultDto);
        }
Esempio n. 2
0
 public Task <ReturnResultDto> PutReserve(Guid id, Reserve reserve)
 {
     throw new NotImplementedException();
 }