Hi,
Can you share your web api modue class ?
Hi,
You can do it like that, You can take a look at this document for how to extend entities <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities">https://aspnetzero.com/Documents/Extend ... g-Entities</a>.
Another option would be, you can create entities PushNotification, MailNotification etc and store them on the same table. <a class="postlink" href="http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/implementing-inheritance-with-the-entity-framework-in-an-asp-net-mvc-application">http://www.asp.net/mvc/overview/getting ... pplication</a>
Which one to choose depends on your need and implementation details.
Hi,
Does your two websites have different subdomains ?
Hi,
just add JsonRequestBehavior.AllowGet to return json values,
return Json(new MvcAjaxResponse(new ErrorInfo(ex.Message)),JsonRequestBehavior.AllowGet);
return Json(new MvcAjaxResponse(new { fileName = tempFileName, width = bmpImage.Width, height = bmpImage.Height }),JsonRequestBehavior.AllowGet);
Hi,
Have you seen this example ? <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/ConsoleRemoteWebApiCall">https://github.com/aspnetboilerplate/as ... WebApiCall</a>
It might help you.
Hi,
You have an Id field because your entities are derived from Entity class, You can define another base entity class for yourself like EntityBaset than override Id field in it like this,
[Column("EntityId")]
public override long Id {get; set;}
And you should derive all of your entities from EntityBase.
Hi,
If you are making an ajax request, errors should be displayed as modal dialogs. But if you are making url redirect, it will show Error page.
You can use ajax requests in your case.
Hi,
You can safely downgrade to 4.5.2.
Hi,
If you are trying to find user of another tenant, you need to switch the target tenant's context like this.
using(CurrentUnitOfWork.SetTenantId(targetTenantId))
{
.....
}
Hi,
Do you have any other attribute on HomeController ? Removing [AbpMvcAuthorize] attribute should work normally.