Neco.Backend/Controllers/EzTaxController.cs
//POST: TaxReport
/// <summary>Generates TaxReport of the given user</summary>
/// <param name="SessionID"></param>
/// <returns></returns>
Generates TaxReport of the given user
Generates TaxReport of the given user
[HttpPost("TaxReport")]
        public async Task<IActionResult> GenerateTR(Guid SessionID) {
            Session S = SessionManager.Manager.FindSession(SessionID);
            if (S == null) { return Unauthorized("Invalid session"); }
            User U = await NecoDB.User.Include(U => U.Type).FirstOrDefaultAsync(U => U.ID == S.UserID);
            return Ok(await CommonReportGenerator(U));
        }
[ HttpPost ( " " ) ] public async Task < IActionResult > GenerateTR ( Guid SessionID ) { Session S = SessionManager . Manager . FindSession ( SessionID ) ; if ( S == null ) { return Unauthorized ( " " ) ; } User U = await NecoDB . User . Include ( U => U . Type ) . FirstOrDefaultAsync ( U => U . ID == S . UserID ) ; return Ok ( await CommonReportGenerator ( U ) ) ; }
Generates TaxReport of the given user
Generates TaxReport of the given user
None
SessionID
Guid
None