* blanc.png: * logo-white.png: * musician-923526_1280.jpg: * musician-923526_1.nb.jpg: * musician-923526_1.nbb.jpg: * musician-923526_1280.s.jpg: * musician-923526_1.nbbi.jpg: * musician-923526_1.nb.xs.jpg: * live-concert-388160_1280.jpg: * musician-923526_1280.xxs.jpg: * musician-923526_1.nbb.xs.jpg: * musician-923526_1.nb.xxs.jpg: * musician-923526_1.nbbi.xs.jpg: * musician-923526_1.nbb.xxs.jpg: * musician-923526_1.nbbi.xxs.jpg: * live-concert-388160_1280.s.jpg: * live-concert-388160_1280.xxs.jpg: images * EventCirclesPub.cs: * BackOfficeController.cs: * FrontOfficeController.cs: * NominativeEventPub.cs: * BackOfficeController.cs: refabrication * Commande.cs: implémente une description pour toute commande, dans la classe concrete * SimpleBookingQuery.cs: la description d'une commande simple de rdv * GoogleHelpers.cs: implemente l'envoi d'une notification nominative (à un prestataire en particulier) * LocalizedText.resx: * LocalizedText.fr.resx: * LocalizedText.Designer.cs: * LocalizedText.fr.Designer.cs: traductions * WorkFlowManager.cs: envoie une notification à la demande de devis d'un client * YavscModel.csproj: notifications privée.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using Yavsc.Admin;
|
|
using Yavsc.Model.Calendar;
|
|
using Yavsc.Model.Circles;
|
|
using System.Web.Security;
|
|
using Yavsc.Model.Google.Api;
|
|
|
|
|
|
namespace Yavsc.Controllers
|
|
{
|
|
/// <summary>
|
|
/// Back office controller.
|
|
/// </summary>
|
|
public class BackOfficeController : Controller
|
|
{
|
|
/// <summary>
|
|
/// Index this instance.
|
|
/// </summary>
|
|
[Authorize(Roles="Admin,Providers")]
|
|
public ActionResult Index()
|
|
{
|
|
return View ();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Notifies the event.
|
|
/// </summary>
|
|
/// <returns>The event.</returns>
|
|
/// <param name="evpub">Evpub.</param>
|
|
public ActionResult NotifyEvent(EventCirclesPub evpub)
|
|
{
|
|
if (ModelState.IsValid) {
|
|
ViewData ["NotifyEvent"] = evpub;
|
|
return View ("NotifyEventResponse", GoogleHelpers.NotifyEvent (evpub));
|
|
}
|
|
|
|
ViewData["CircleIds"] = CircleManager.DefaultProvider.List (
|
|
Membership.GetUser ().UserName).Select (x => new SelectListItem {
|
|
Value = x.Id.ToString(),
|
|
Text = x.Title,
|
|
Selected = (evpub.CircleIds==null) ? false : evpub.CircleIds.Contains (x.Id)
|
|
});
|
|
return View (evpub);
|
|
}
|
|
}
|
|
}
|