public ProizvodController(ICreateProizvodCommand createProizvod, IEditProizvodCommand editProizvod, IDeleteProizvodCommand deleteProizvodCommand, IGetProizvodsCommand getProizvods, IGetProizvodCommand getProizvod) { this._createProizvod = createProizvod; this._editProizvod = editProizvod; this._deleteProizvod = deleteProizvodCommand; this._getProizvods = getProizvods; this._getProizvod = getProizvod; }
public IActionResult Delete(int id, [FromServices] IDeleteProizvodCommand command) { executor.ApplayCommand(command, id); return(NoContent()); }
public IActionResult DeleteProizvod(long id, [FromServices] IDeleteProizvodCommand command) { _loggerMediator.HandleProccessExecution(command, id); return(Ok()); }