(c context.Context, view models.View, viewId string)
| 23 | } |
| 24 | |
| 25 | func (ctrl *Controller) UpdateView(c context.Context, view models.View, viewId string) (err error) { |
| 26 | _, err = ctrl.repo.HandleQuery(c, repository.UpdateViewKey, &view, [][3]string{{"id", "=", viewId}}, "") |
| 27 | return |
| 28 | } |
| 29 | |
| 30 | func (ctrl *Controller) DeleteView(c context.Context, viewId string) (err error) { |
| 31 | _, err = ctrl.repo.HandleQuery(c, repository.DeleteKey, new(models.View), [][3]string{{"id", "=", viewId}}, "") |
no test coverage detected