public async Task <BaseResponse> DeleteComputer(Guid computerId)
        {
            if (!await _computerRepository.Exists(computerId))
            {
                return(new BaseResponse((int)HttpStatusCode.NotFound));
            }

            var computer = await _computerRepository.Get(computerId);

            await _computerRepository.Delete(computer);

            return(new BaseResponse((int)HttpStatusCode.NoContent));
        }
Ejemplo n.º 2
0
 public Model.Models.Computer Delete(int id)
 {
     return(_computerRepository.Delete(id));
 }