public async Task AddCabinetToPhone(int phoneId, int cabinetId) { Phone phone = await phoneService.GetPhone(phoneId); Cabinet cabinet = await cabinetService.GetCabinet(cabinetId); await phoneService.AddCabinetToPhone(phone, cabinet); }
public async Task <Cabinet> GetCabinet(int id) { return(await cabinetService.GetCabinet(id)); }