public async Task <IActionResult> GetProfitPierdere(string id, string an) { return(Json(await _dashboardManager.GetProfitPierdere(id, an))); }
public async Task <IActionResult> GetProfitPierdere(string an) { var clientId = _context.ApplicationUsers.FirstOrDefault(u => u.UserName == User.Identity.Name).ClientId; return(Json(await _dashboardManager.GetProfitPierdere(clientId.ToString(), an))); }