Method | Description | |
---|---|---|
AddNewCar ( |
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 ( |
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 |
Method | Description | |
---|---|---|
CarPark ( ) : System.Web.Mvc.ActionResult |
public AddNewCar ( |
||
car | object from ajax call | |
return | System.Web.Mvc.JsonResult |
public CarsController ( ICarManager carManager, IUserManager userManager, IWorkerStatusManager wsManager ) : System | ||
carManager | ICarManager | |
userManager | IUserManager | |
wsManager | IWorkerStatusManager | |
return | System |
public DeleteCar ( int Id ) : System.Web.Mvc.JsonResult | ||
Id | int | Id from ajax call |
return | System.Web.Mvc.JsonResult |
public EditCar ( |
||
car | input car object | |
return | System.Web.Mvc.JsonResult |
public GetCarForEdit ( int Id ) : System.Web.Mvc.JsonResult | ||
Id | int | id from ajax call |
return | System.Web.Mvc.JsonResult |
public GiveCar ( int CarId, int DriverId ) : System.Web.Mvc.JsonResult | ||
CarId | int | id of a car object |
DriverId | int | Id of a driver |
return | System.Web.Mvc.JsonResult |
public ReturnCar ( int CarId, int RealOwnerId ) : System.Web.Mvc.JsonResult | ||
CarId | int | olololo |
RealOwnerId | int | ololololo |
return | System.Web.Mvc.JsonResult |
public SetCarStatus ( int Id ) : System.Web.Mvc.JsonResult | ||
Id | int | |
return | System.Web.Mvc.JsonResult |
public SortBy ( string parameter ) : System.Web.Mvc.JsonResult | ||
parameter | string | |
return | System.Web.Mvc.JsonResult |