C# Class HotelManagement.Controllers.HotelController

Inheritance: BaseController
Show file Open project: avdevelop/hotelmanagement

Public Methods

Method Description
HotelController ( IHotelService hotelService, IHotelChainService hotelChainService ) : System
Index ( ) : System.Web.Mvc.ActionResult
Success ( string message ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Add ( HotelDTO hotel ) : System.Web.Mvc.ActionResult
Create ( HotelDTO hotel ) : System.Web.Mvc.ActionResult
Delete ( HotelDTO hotel, int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult

Method Details

HotelController() public method

public HotelController ( IHotelService hotelService, IHotelChainService hotelChainService ) : System
hotelService IHotelService
hotelChainService IHotelChainService
return System

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Success() public method

public Success ( string message ) : System.Web.Mvc.ActionResult
message string
return System.Web.Mvc.ActionResult