Example #1
0
        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));
        }
Example #2
0
 public static DetailPosStatusTerminal_PosStatusTerminalDetailView ConvertToDetailPosStatusTerminal_PosStatusTerminalDetailView(
     this PosStatusTerminalView posStatusTerminals)
 {
     return(Mapper.Map <PosStatusTerminalView,
                        DetailPosStatusTerminal_PosStatusTerminalDetailView>(posStatusTerminals));
 }
Example #3
0
 public static ModifyPosStatusTerminalRequest ConvertToModifyPosStatusTerminalRequest(
     this PosStatusTerminalView posStatusTerminals)
 {
     return(Mapper.Map <PosStatusTerminalView,
                        ModifyPosStatusTerminalRequest>(posStatusTerminals));
 }
Example #4
0
 public static PosStatusTerminalDetailView ConvertToPosStatusTerminalDetailView(
     this PosStatusTerminalView posStatusTerminal)
 {
     return(Mapper.Map <PosStatusTerminalView,
                        PosStatusTerminalDetailView>(posStatusTerminal));
 }
Example #5
0
 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));
 }