Skip to content

Commit 83647ad

Browse files
authored
Merge pull request #196 from Resgrid/develop
CU-3w8z67w Fixing error page.
2 parents e99378b + aea5ed6 commit 83647ad

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Web/Resgrid.Web/Areas/User/Controllers/DispatchController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,9 @@ public async Task<IActionResult> CallsStatesInRange(string startDate, string end
17891789
{
17901790
List<CallTypesJson> callTypes = new List<CallTypesJson>();
17911791

1792+
if (String.IsNullOrWhiteSpace(startDate) || String.IsNullOrWhiteSpace(endDate))
1793+
return Json(callTypes);
1794+
17921795
if (!String.IsNullOrWhiteSpace(startDate) && !String.IsNullOrWhiteSpace(endDate))
17931796
{
17941797
var calls = await _callsService.GetAllCallsByDepartmentDateRangeAsync(DepartmentId, DateTime.Parse(System.Net.WebUtility.UrlDecode((startDate))), DateTime.Parse(System.Net.WebUtility.UrlDecode(endDate)));
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Threading.Tasks;
2+
using Microsoft.AspNetCore.Authorization;
3+
using Microsoft.AspNetCore.Mvc;
4+
5+
namespace Resgrid.Web.Controllers
6+
{
7+
[AllowAnonymous]
8+
public class PublicController : Controller
9+
{
10+
public async Task<IActionResult> Error()
11+
{
12+
return View();
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)