public HttpResponseMessage Delete(long Id)
 {
     try
     {
         if (Id > 0)
         {
             OpportunityTechnologyRepository rep = new OpportunityTechnologyRepository();
             Validate repValid = rep.ValidateDelete(Id);
             if (repValid.IsValid)
             {
                 rep.Delete(Id);
                 return(Request.CreateResponse(HttpStatusCode.OK, "Operação efetuada com sucesso!"));
             }
             else
             {
                 return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, repValid.Message));
             }
         }
         else
         {
             return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Id inválido!"));
         }
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }