diff --git a/Yavsc/ViewComponents/BillViewComponent.cs b/Yavsc/ViewComponents/BillViewComponent.cs index 185c1e2b..cd84ce36 100644 --- a/Yavsc/ViewComponents/BillViewComponent.cs +++ b/Yavsc/ViewComponents/BillViewComponent.cs @@ -6,17 +6,14 @@ using Microsoft.Extensions.Localization; using Yavsc.Billing; using Yavsc.Helpers; using Yavsc.Models; -using Yavsc.Services; using Yavsc.ViewModels; using Yavsc.ViewModels.Gen; namespace Yavsc.ViewComponents { - public class BillViewComponent : ViewComponent { ApplicationDbContext dbContext; - IBillingService billingService; IStringLocalizer localizer; public BillViewComponent(ApplicationDbContext dbContext, @@ -25,24 +22,6 @@ namespace Yavsc.ViewComponents this.dbContext = dbContext; this.localizer = localizer; } - /* - public async Task InvokeAsync(string code, long id) - { - return await InvokeAsync(code, id, OutputFormat.Html); - } - public async Task InvokeAsync(string code, long id, OutputFormat outputFormat) - { - return await InvokeAsync(code,id,outputFormat,false,false); - } - public async Task InvokeAsync(string code, long id, OutputFormat outputFormat, bool asBill, bool acquitted) - { - var billable = await Task.Run( () => billingService.GetBillAsync(code,id)); - - if (billable == null) - throw new Exception("No data"); - return await InvokeAsync(code, billable, outputFormat,asBill,acquitted); - - } */ public async Task InvokeAsync(string code, IBillable billable, OutputFormat format, bool asBill, bool acquitted) { diff --git a/Yavsc/wwwroot/js/site.min.js b/Yavsc/wwwroot/js/site.min.js index f68a50b5..765bdd15 100755 --- a/Yavsc/wwwroot/js/site.min.js +++ b/Yavsc/wwwroot/js/site.min.js @@ -1 +1 @@ -function notifClick(n){n>0&&$.get("/api/dimiss/click/"+n).done(function(){}).fail(function(){}).always(function(){})}+function(n){var o=function(o){var t=n(this).prop("checked"),c=n(this).data("circle-id"),i=n(this).data("target-id"),e={CircleId:c,BlogPostId:i},a="/api/blogacl";t||(a+="/"+c),console.log(e),n.ajax({url:a,type:t?"POST":"DELETE",data:JSON.stringify(e),contentType:"application/json;charset=utf-8",success:function(n){console.log("POSTed")},error:function(){console.log("POSTed")}}),o.preventDefault()};n(document).ready(function(){n("input.Blogcirle[type=checkbox]").on("change",o)})}(jQuery); \ No newline at end of file ++function(o){var t=function(t){var e=o(this).prop("checked"),c=o(this).data("circle-id"),n=o(this).data("target-id"),a={CircleId:c,BlogPostId:n},i="/api/blogacl";e||(i+="/"+c),console.log(a),o.ajax({url:i,type:e?"POST":"DELETE",data:JSON.stringify(a),contentType:"application/json;charset=utf-8",success:function(o){console.log("POSTED")},error:function(){console.log("POSTed")}}),t.preventDefault()};o(document).ready(function(){o("input.Blogcirle[type=checkbox]").on("change",t)})}(jQuery); \ No newline at end of file