fix
This commit is contained in:
@@ -75,7 +75,7 @@ public class CurrencyController : BaseApiController
|
||||
var exec = _currencyService.CurrencyUpdate(
|
||||
UserId,
|
||||
id.AsGuid(),
|
||||
new CurrencyEdit { Name = currency.Name, ShortName = currency.ShortName }
|
||||
new CurrencyEdit { Name = currency.Name, ShortName = currency.ShortName, IsPrimary = currency.IsPrimary }
|
||||
);
|
||||
|
||||
switch (exec.Status)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using MyOffice.Services.Account;
|
||||
using MyOffice.Services.Item;
|
||||
using Services.Dashboard;
|
||||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
@@ -11,24 +12,23 @@ using MyOffice.Services.Item;
|
||||
public class DashboardController : BaseApiController
|
||||
{
|
||||
private readonly ILogger<DashboardController> _logger;
|
||||
private readonly DashboardService _dashboardService;
|
||||
|
||||
public DashboardController(
|
||||
ILogger<DashboardController> logger
|
||||
ILogger<DashboardController> logger,
|
||||
DashboardService dashboardService
|
||||
)
|
||||
{
|
||||
_logger = logger;
|
||||
_dashboardService = dashboardService;
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("~/api/accounts")]
|
||||
[HttpGet("~/api/dashboard")]
|
||||
public object Index()
|
||||
{
|
||||
return new
|
||||
{
|
||||
IncomeLastWeek = 100m,
|
||||
IncomePreviousWeek = 100m,
|
||||
OutcomeLastWeek = 100m,
|
||||
OutcomePreviousWeek = 100m,
|
||||
};
|
||||
var data = _dashboardService.GetDashboardRestData(UserId);
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user