예제 #1
0
        public async Task <IHttpActionResult> DeleteStorage(Guid id)
        {
            Storage storage = _storageRepository.GetSingle(e => e.Id == id);

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

            await _storageRepository.DeleteAsync(storage);


            return(Ok(storage));
        }