Exemplo n.º 1
0
        public async Task <IActionResult> DeleteMonth([FromBody] UserMoneyDetaleRequest userMoneyDetaleRequest)
        {
            List <UserMoneyDetaleResponse> userMoneyDetaleResponse = await MoneyService.DeleteMonthAsync(userMoneyDetaleRequest, GeneralExtantions.GetUserId(HttpContext));

            return(Ok(userMoneyDetaleResponse));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetMonth([FromRoute] int month, [FromRoute] int year)
        {
            List <UserMoneyDetaleResponse> userMoneyDetaleResponse = await MoneyService.GetMonthAsync(GeneralExtantions.GetUserId(HttpContext), month, year);

            return(Ok(userMoneyDetaleResponse));
        }
Exemplo n.º 3
0
        [HttpPost(ApiRoutes.MoneyDetaleRoute.Post)] //ApiRoutes.MoneyDetaleRoute.Post
        public async Task <IActionResult> PostMonth([FromBody] UserMoneyDetaleRequest userMoneyDetaleRequest)
        {
            UserMoneyDetaleResponse userMoneyDetaleResponse = await MoneyService.PostMonth(userMoneyDetaleRequest, GeneralExtantions.GetUserId(HttpContext));

            return(Ok(userMoneyDetaleResponse));
        }
Exemplo n.º 4
0
        public async Task <IActionResult> GetLastMonth()
        {
            List <UserMoneyDetaleResponse> userMoneyDetaleResponse = await MoneyService.GetMonthAsync(GeneralExtantions.GetUserId(HttpContext), null, null);

            return(Ok(userMoneyDetaleResponse));
        }