C# 클래스 MainSaite.Controllers.CarsController

상속: BaseController
파일 보기 프로젝트 열기: CH033dotNET/Taxi

공개 메소드들

메소드 설명
AddNewCar ( CarDTO car ) : System.Web.Mvc.JsonResult

Gets an object from ajax call and adds it to database

CarsController ( ICarManager carManager, IUserManager userManager, IWorkerStatusManager wsManager ) : System
DeleteCar ( int Id ) : System.Web.Mvc.JsonResult

Get an id from ajax call and deletes a car object with current id

EditCar ( CarDTO car ) : System.Web.Mvc.JsonResult

Gets an object from ajax call, edits it and saves changes to db

GetCarForEdit ( int Id ) : System.Web.Mvc.JsonResult

Get an id from ajax call and returns a car object with current id.

GiveCar ( int CarId, int DriverId ) : System.Web.Mvc.JsonResult

Gets specific id`s from ajax call and interpret them as values of specific object`s properties.

ReturnCar ( int CarId, int RealOwnerId ) : System.Web.Mvc.JsonResult

Gets specific id`s from ajax call and interpret them as values of specific object`s properties.

SetCarStatus ( int Id ) : System.Web.Mvc.JsonResult

Gets specific id form ajax call and sets Car object status, which id matching received id value.

SortBy ( string parameter ) : System.Web.Mvc.JsonResult

비공개 메소드들

메소드 설명
CarPark ( ) : System.Web.Mvc.ActionResult

메소드 상세

AddNewCar() 공개 메소드

Gets an object from ajax call and adds it to database
public AddNewCar ( CarDTO car ) : System.Web.Mvc.JsonResult
car Model.DTO.CarDTO object from ajax call
리턴 System.Web.Mvc.JsonResult

CarsController() 공개 메소드

public CarsController ( ICarManager carManager, IUserManager userManager, IWorkerStatusManager wsManager ) : System
carManager ICarManager
userManager IUserManager
wsManager IWorkerStatusManager
리턴 System

DeleteCar() 공개 메소드

Get an id from ajax call and deletes a car object with current id
public DeleteCar ( int Id ) : System.Web.Mvc.JsonResult
Id int Id from ajax call
리턴 System.Web.Mvc.JsonResult

EditCar() 공개 메소드

Gets an object from ajax call, edits it and saves changes to db
public EditCar ( CarDTO car ) : System.Web.Mvc.JsonResult
car Model.DTO.CarDTO input car object
리턴 System.Web.Mvc.JsonResult

GetCarForEdit() 공개 메소드

Get an id from ajax call and returns a car object with current id.
public GetCarForEdit ( int Id ) : System.Web.Mvc.JsonResult
Id int id from ajax call
리턴 System.Web.Mvc.JsonResult

GiveCar() 공개 메소드

Gets specific id`s from ajax call and interpret them as values of specific object`s properties.
public GiveCar ( int CarId, int DriverId ) : System.Web.Mvc.JsonResult
CarId int id of a car object
DriverId int Id of a driver
리턴 System.Web.Mvc.JsonResult

ReturnCar() 공개 메소드

Gets specific id`s from ajax call and interpret them as values of specific object`s properties.
public ReturnCar ( int CarId, int RealOwnerId ) : System.Web.Mvc.JsonResult
CarId int olololo
RealOwnerId int ololololo
리턴 System.Web.Mvc.JsonResult

SetCarStatus() 공개 메소드

Gets specific id form ajax call and sets Car object status, which id matching received id value.
public SetCarStatus ( int Id ) : System.Web.Mvc.JsonResult
Id int
리턴 System.Web.Mvc.JsonResult

SortBy() 공개 메소드

public SortBy ( string parameter ) : System.Web.Mvc.JsonResult
parameter string
리턴 System.Web.Mvc.JsonResult