cleaning & publishing

main
Paul Schneider 9 years ago
parent 7852817863
commit a5286af1e5
2 changed files with 1 additions and 22 deletions

@ -6,17 +6,14 @@ using Microsoft.Extensions.Localization;
using Yavsc.Billing; using Yavsc.Billing;
using Yavsc.Helpers; using Yavsc.Helpers;
using Yavsc.Models; using Yavsc.Models;
using Yavsc.Services;
using Yavsc.ViewModels; using Yavsc.ViewModels;
using Yavsc.ViewModels.Gen; using Yavsc.ViewModels.Gen;
namespace Yavsc.ViewComponents namespace Yavsc.ViewComponents
{ {
public class BillViewComponent : ViewComponent public class BillViewComponent : ViewComponent
{ {
ApplicationDbContext dbContext; ApplicationDbContext dbContext;
IBillingService billingService;
IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer; IStringLocalizer<Yavsc.Resources.YavscLocalisation> localizer;
public BillViewComponent(ApplicationDbContext dbContext, public BillViewComponent(ApplicationDbContext dbContext,
@ -25,24 +22,6 @@ namespace Yavsc.ViewComponents
this.dbContext = dbContext; this.dbContext = dbContext;
this.localizer = localizer; this.localizer = localizer;
} }
/*
public async Task<IViewComponentResult> InvokeAsync(string code, long id)
{
return await InvokeAsync(code, id, OutputFormat.Html);
}
public async Task<IViewComponentResult> InvokeAsync(string code, long id, OutputFormat outputFormat)
{
return await InvokeAsync(code,id,outputFormat,false,false);
}
public async Task<IViewComponentResult> 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<IViewComponentResult> InvokeAsync(string code, IBillable billable, OutputFormat format, bool asBill, bool acquitted) public async Task<IViewComponentResult> InvokeAsync(string code, IBillable billable, OutputFormat format, bool asBill, bool acquitted)
{ {

@ -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); +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);
Loading…