C# Class Worki.Web.Areas.Backoffice.Controllers.OfferController

Inheritance: BackofficeControllerBase
显示文件 Open project: tah91/eworkyWebSite

Private Properties

Property Type Description
Booking System.Web.Mvc.ActionResult
Configure System.Web.Mvc.ActionResult
Configure System.Web.Mvc.ActionResult
Configure System.Web.Mvc.ActionResult
Edit System.Web.Mvc.ActionResult
Edit System.Web.Mvc.ActionResult
Edit System.Web.Mvc.ActionResult
Index System.Web.Mvc.ActionResult
OfferController System
OfferDropdown System.Web.Mvc.ActionResult
OfferDropdown System.Web.Mvc.ActionResult
Prices System.Web.Mvc.ActionResult
Prices System.Web.Mvc.ActionResult
Prices System.Web.Mvc.ActionResult
Quotation System.Web.Mvc.ActionResult
RedirectToAction System.Web.Mvc.RedirectToRouteResult
VerticalMenu System.Web.Mvc.ActionResult
VerticalMenu System.Web.Mvc.ActionResult

Public Methods

Method Description
Booking ( int id, int offerId, int page = 1 ) : System.Web.Mvc.ActionResult

Get action method to show bookings of the owner, for a given localisation and offer

GetOffer ( int id, int offerId, Offer &offer, ILocalisationRepository lRepo, IOfferRepository oRepo, Func caseError ) : void
Index ( int id, int offerId ) : System.Web.Mvc.ActionResult

Get action result to show recent activities of the owner localisation

OfferController ( ILogger logger, IObjectStore objectStore, IEmailService emailService ) : System
Quotation ( int id, int offerId, int page = 1 ) : System.Web.Mvc.ActionResult

Get action method to show quotation of the owner, for a given localisation and offer

Private Methods

Method Description
Booking ( ) : System.Web.Mvc.ActionResult
Configure ( ) : System.Web.Mvc.ActionResult
Configure ( int id, OfferModel formData ) : System.Web.Mvc.ActionResult
Configure ( int id, int offerId ) : System.Web.Mvc.ActionResult
Edit ( ) : System.Web.Mvc.ActionResult
Edit ( int id, int offerId ) : System.Web.Mvc.ActionResult
Edit ( int id, int offerId, OfferFormViewModel formData ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
OfferController ( Dummy d ) : System
OfferDropdown ( ) : System.Web.Mvc.ActionResult
OfferDropdown ( int id, int selected ) : System.Web.Mvc.ActionResult
Prices ( ) : System.Web.Mvc.ActionResult
Prices ( int id, int offerId ) : System.Web.Mvc.ActionResult
Prices ( int id, int offerId, OfferModel formData ) : System.Web.Mvc.ActionResult
Quotation ( ) : System.Web.Mvc.ActionResult
RedirectToAction ( System.Web.Mvc.ActionResult result ) : System.Web.Mvc.RedirectToRouteResult
VerticalMenu ( ) : System.Web.Mvc.ActionResult
VerticalMenu ( int id, int selected ) : System.Web.Mvc.ActionResult

Method Details

Booking() public method

Get action method to show bookings of the owner, for a given localisation and offer
public Booking ( int id, int offerId, int page = 1 ) : System.Web.Mvc.ActionResult
id int
offerId int id of the offer
page int
return System.Web.Mvc.ActionResult

GetOffer() public static method

public static GetOffer ( int id, int offerId, Offer &offer, ILocalisationRepository lRepo, IOfferRepository oRepo, Func caseError ) : void
id int
offerId int
offer Worki.Data.Models.Offer
lRepo ILocalisationRepository
oRepo IOfferRepository
caseError Func
return void

Index() public method

Get action result to show recent activities of the owner localisation
public Index ( int id, int offerId ) : System.Web.Mvc.ActionResult
id int
offerId int
return System.Web.Mvc.ActionResult

OfferController() public method

public OfferController ( ILogger logger, IObjectStore objectStore, IEmailService emailService ) : System
logger ILogger
objectStore IObjectStore
emailService IEmailService
return System

Quotation() public method

Get action method to show quotation of the owner, for a given localisation and offer
public Quotation ( int id, int offerId, int page = 1 ) : System.Web.Mvc.ActionResult
id int id of the localisation
offerId int id of the offer
page int
return System.Web.Mvc.ActionResult