public async Task <ActionResult <sous_categorie> > Put([FromBody] sous_categorie etu) { var k = new PutGeneric <sous_categorie>(etu); var result = await _mediator.Send(k); return(Ok(result)); }
public async Task <ActionResult <sous_categorie> > PostAsync(sous_categorie entity) { var k = new AddGeneric <sous_categorie>(entity); var result = await _mediator.Send(k); return(Ok(result)); }