public async Task <IActionResult> ShareEquipment([FromBody] ShareEquipmentDto eqToShare)
        {
            if (await _repo.CheckThatEqWasShared(eqToShare.EquipmentId, eqToShare.GroupId))
            {
                return(BadRequest("Ekwipunek jest już udostpępniony dla tej grupy"));
            }

            var eqShare = await _repo.ShareEquipment(eqToShare);

            return(StatusCode(201));
        }