public void Eliminar(SalaRequest request)
 {
     try
     {
         var bc = new SalaComponent();
         //var sala = bc.Find(id);
         bc.Remove(request.Sala);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
Beispiel #2
0
        public void Remove(Sala sala)
        {
            var bc = new SalaComponent();

            bc.Remove(sala);
        }