Hi,
Any action attribute can disable automatic camel case conversion of return Json result? Thanks.
[DontWrapResult]
[AcceptVerbs(HttpVerbs.Post)]
[AbpMvcAuthorize(AppPermissions.Pages_Master_Location_Delete)]
public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, LocationViewModel item)
{
try
{
if (item != null && item.Id.HasValue)
{
_locationManager.Delete(item.Id.Value);
}
}
catch (Exception ex)
{
ModelState.AddModelError("DeleteError", "error");
}
return Json(new[] { item }.ToDataSourceResult(request, ModelState));
}
Response is not json but Asp.net exception instead. Please advice how to resolve.
Server Error in '/' Application.
The DELETE statement conflicted with the REFERENCE constraint "FK_dbo.AppStockAmount_dbo.AppLocation_LocationId". The conflict occurred in database "Demo", table "dbo.AppStockAmount", column 'LocationId'. The statement has been terminated.
Hi All,
We're developing a small product on Zero module. Now looking for a front end part time developer, if you're interested please send me message or shot mail to <a href="mailto:[email protected]">[email protected]</a>. Thanks!
I've added "Location" object/table for business purpose. Is there anyway to extend UserRole for location based role mangement? Thanks.