Пример #1
0
 public void Actualizar(SalaRequest request)
 {
     try
     {
         var bc = new SalaComponent();
         bc.Edit(request.Sala);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
Пример #2
0
        public bool Edit(Sala sala)
        {
            SalaComponent Salacomponent = new SalaComponent();

            return(Salacomponent.Edit(sala));
        }
Пример #3
0
        public void Edit(Sala sala)
        {
            var bc = new SalaComponent();

            bc.Edit(sala);
        }