public IActionResult MemberPurchase(MemberAccountModel accountModel) { try { var currentMonthPurchase = _employee.PurchaseByMember(accountModel); return(Ok(new { status = true, result = currentMonthPurchase })); } catch (InvalidException err) { return(Ok(new { status = false, result = err.Message })); } catch (Exception ex) { return(BadRequest(ex.Message)); } }