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); } }
public bool Edit(Sala sala) { SalaComponent Salacomponent = new SalaComponent(); return(Salacomponent.Edit(sala)); }
public void Edit(Sala sala) { var bc = new SalaComponent(); bc.Edit(sala); }