public JsonResult GetPosTerminalDataTable(System.Int32 id) { DataTableViewModel data; GetPosStatusTerminalRequest request = new GetPosStatusTerminalRequest(); request.TerminalStatusId = id; PosStatusTerminalView posStatusTerminal = _posStatusTerminalService.GetPosStatusTerminal(request).PosStatusTerminal; data = new DataTableViewModel(); data.draw = "1"; data.recordsTotal = posStatusTerminal.PosTerminals.ToList().Count.ToString(); data.recordsFiltered = posStatusTerminal.PosTerminals.ToList().Count.ToString(); data.data = posStatusTerminal.PosTerminals.ConvertToDetailPosStatusTerminalPosTerminalDetailViews().ToList <object>(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public static DetailPosStatusTerminal_PosStatusTerminalDetailView ConvertToDetailPosStatusTerminal_PosStatusTerminalDetailView( this PosStatusTerminalView posStatusTerminals) { return(Mapper.Map <PosStatusTerminalView, DetailPosStatusTerminal_PosStatusTerminalDetailView>(posStatusTerminals)); }
public static ModifyPosStatusTerminalRequest ConvertToModifyPosStatusTerminalRequest( this PosStatusTerminalView posStatusTerminals) { return(Mapper.Map <PosStatusTerminalView, ModifyPosStatusTerminalRequest>(posStatusTerminals)); }
public static PosStatusTerminalDetailView ConvertToPosStatusTerminalDetailView( this PosStatusTerminalView posStatusTerminal) { return(Mapper.Map <PosStatusTerminalView, PosStatusTerminalDetailView>(posStatusTerminal)); }
public static PosStatusTerminalFlatViewModel ConvertToPosStatusTerminalFlatViewModel( this PosStatusTerminalView posStatusTerminal) { return(Mapper.Map <PosStatusTerminalView, PosStatusTerminalFlatViewModel>(posStatusTerminal)); }
public static PosStatusTerminal ConvertToPosStatusTerminal( this PosStatusTerminalView posStatusTerminalView) { return(Mapper.Map <PosStatusTerminalView, PosStatusTerminal>(posStatusTerminalView)); }