This code worked. And thank you @yekalkan and @maliming
public virtual async Task Create(CreateOrEditAirplaneTicketDto input)
{
var airplaneTicket = ObjectMapper.Map<AirplaneTicket>(input);
if (AbpSession.TenantId != null)
{
airplaneTicket.TenantId = (int?)AbpSession.TenantId;
}
using (var unitofwork = _unitOfWorkManager.Begin())
{
await _airplaneTicketRepository.InsertAsync(airplaneTicket);
await _unitOfWorkManager.Current.SaveChangesAsync();
unitofwork.Complete();
unitofwork.Dispose();
}
var result = _airplaneTicketRepository.GetAll();
}
Previously answered in Turkish. I'm sorry. I insert data to database. But, I see data in database when transaction code end. But, I want to see before the code ends.
public virtual async Task Create(CreateOrEditAirplaneTicketDto input)
{
var airplaneTicket = ObjectMapper.Map<AirplaneTicket>(input);
if (AbpSession.TenantId != null)
{
airplaneTicket.TenantId = (int?)AbpSession.TenantId;
}
_airplaneTicketRepository.Insert(airplaneTicket);
**var result = _airplaneTicketRepository.GetAll();**
}
Why result object is null?
Thanks.
Perfect I see your link and use this attribute " [dropup]="true" " it is solved, Thanks
I tried before, did you tried this samples in the project? Becouse when I tried, I'lll see this:
maybe base css classes or usage is different. My source code below:
`<div class="row"> <div class="col"> <div ngbDropdown class="d-inline-block"> <button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Toggle dropdown</button> <div ngbDropdownMenu aria-labelledby="dropdownBasic1"> <button ngbDropdownItem>Action - 1</button> <button ngbDropdownItem>Another Action</button> <button ngbDropdownItem>Something else is here</button> </div> </div> </div>
<div class="col text-right"> <div ngbDropdown placement="top-right" class="d-inline-block"> <button class="btn btn-outline-primary" id="dropdownBasic2" ngbDropdownToggle>Toggle dropup</button> <div ngbDropdownMenu aria-labelledby="dropdownBasic2"> <button ngbDropdownItem>Action - 1</button> <button ngbDropdownItem>Another Action</button> <button ngbDropdownItem>Something else is here</button> </div> </div> </div> </div>`