Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult ChangeGroupName([FromBody] DtoGroup dtoGroup, string newName) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { _groupsService.ChangeGroupName(dtoGroup, newName); return(Ok()); } catch (Exception) { return(BadRequest("You are not the admin of this group!")); } }