public HttpResponseMessage AlterarTiposMalote(MaloteTipo obj)
        {
            var context = new AlvoradaContext();

            try
            {
                context.Entry(obj).State = EntityState.Modified;
                context.SaveChanges();
            }

            catch (Exception ex)
            {
                throw ex;
            }

            return(Request.CreateResponse(HttpStatusCode.OK));
        }
        public HttpResponseMessage IncluirTiposMalote(MaloteTipo obj)
        {
            var context = new AlvoradaContext();

            try
            {
                context.MaloteTipos.Add(obj);
                context.SaveChanges();
            }

            catch (Exception ex)
            {
                throw ex;
            }

            return(Request.CreateResponse(HttpStatusCode.OK));
        }