public async Task <string> Post(Entrega_Mobile model)
        {
            try {
                _dataContext.Entregas_Mobile.Add(model);
                await _dataContext.SaveChangesAsync();

                return("Realizado");
            }
            catch (Exception error)
            {
                return(error.ToString());
            }
        }
        public async Task <string> Put(Entrega_Mobile model)
        {
            try
            {
                _dataContext.Entregas_Mobile.Update(model);
                await _dataContext.SaveChangesAsync();

                return("Realizado");
            }
            catch (DbUpdateConcurrencyException)
            {
                return("Item esta sendo atualizado neste momento, tente mais tarde");
            }
            catch (Exception error)
            {
                return(error.ToString());
            }
        }
        public async Task <string> Delete(Entrega_Mobile model)
        {
            try {
                var item = _dataContext.Entregas_Mobile.Find(model.id);

                if (item == null)
                {
                    return("Não encontrado");
                }

                _dataContext.Entregas_Mobile.Remove(item);
                await _dataContext.SaveChangesAsync();

                return("Realizado");
            }
            catch (Exception error)
            {
                return(error.ToString());
            }
        }
 public Task <string> Put(Entrega_Mobile model)
 {
     return(_repository.Put(model));
 }
 public Task <string> Delete(Entrega_Mobile model)
 {
     return(_repository.Delete(model));
 }
        public async Task <ActionResult <string> > Delete(Entrega_Mobile model)
        {
            var resp = await _services.Delete(model);

            return(Ok(resp));
        }