public async Task <IActionResult> DeleteMonth([FromBody] UserMoneyDetaleRequest userMoneyDetaleRequest) { List <UserMoneyDetaleResponse> userMoneyDetaleResponse = await MoneyService.DeleteMonthAsync(userMoneyDetaleRequest, GeneralExtantions.GetUserId(HttpContext)); return(Ok(userMoneyDetaleResponse)); }
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)); }
[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)); }
public async Task <IActionResult> GetLastMonth() { List <UserMoneyDetaleResponse> userMoneyDetaleResponse = await MoneyService.GetMonthAsync(GeneralExtantions.GetUserId(HttpContext), null, null); return(Ok(userMoneyDetaleResponse)); }