Are you missing the modal-body class?
<div class="modal" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header"></div>
<div class="modal-body"></div>
<div class="modal-footer"></div>
</div>
</div>
</div>
That should work. Can you show the complete method instead of your workaround?
Check that you called RegisterAssemblyByConvention:
[DependsOn(typeof(ProtoDataModule), typeof(ProtoApplicationModule))]
public class ProtoModule : AbpModule
{
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
}
}
Use ToListAsync. Linq-to-SQL is compiled, so Where and GroupBy do not need async counterparts.
var temporaryConflicts = await _enrollmentRepository.GetAll()
.Where(x => x is Temporary)
.Where(x => !excludedIds.Contains(x.Id))
.GroupBy(x => x.Detail.Username)
.Where(g => g.Count() > 1)
.Select(g => g.Key)
.ToListAsync();
Yes, this is possible:
var bob = await _userRepository.FirstOrDefaultAsync(x => x.Name == "Bob");
I didn't mention WebApi. Please see the link for Generic Middleware Instructions and Global Config Instructions.
If you want to change the max request body size limit for a specific MVC action or controller, you can use the RequestSizeLimit attribute. The following would allow MyAction to accept request bodies up to 100,000,000 bytes.
[HttpPost]
[RequestSizeLimit(100_000_000)]
public IActionResult MyAction([FromBody] MyViewModel data)
{
[DisableRequestSizeLimit] can be used to make request size unlimited. This effectively restores pre-2.0.0 behavior for just the attributed action or controller.
See: <a class="postlink" href="https://github.com/aspnet/Announcements/issues/267">https://github.com/aspnet/Announcements/issues/267</a>
Sounds like you want to do this instead:
action: function (data) {
window.location.href = abp.appPath + 'Mpa/CompanyAdmin/Index?userId=' + data.record.id;
}
Did you define the following class?
public class PurchaseRequestHdrServiceBase : IPurchaseRequestHdrServiceBase
{
// ...
}
Otherwise, show relevant code.
public class MyAppService
{
public ICacheManager CacheManager { get; set; }
public ICache Cache => CacheManager.GetCache("MyCache");
public void Set(int value)
{
Cache.Set("key", value);
}
}
See: