public LoginPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { var header = new HeaderModel(); header.HeaderText = AppResources.TEXT_LOGIN; CurrentHeader = header; }
public static void Show() { IFacadeService _facade = new FacadeService(); _facade.GetCatalogo(); _facade.GetBookById(Guid.NewGuid()); _facade.GetPedidoById(Guid.NewGuid()); }
public IActionResult GetAttachment(string jobid) { if (string.IsNullOrEmpty(jobid)) { return(BadRequest()); } List <Attachment> attachments = FacadeService.GetAttachmentsCSOM(AppConfiguaraton.ConsultaionAttachementListName, jobid); return(Ok(attachments)); }
public MyDetailPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { var header = new HeaderModel(); header.HeaderText = AppResources.TEXT_DETAIL; header.LeftText = "book-open"; //AppResources.Text_ADDRESS_BOOK; header.RightText = "sign-out-alt"; //AppResources.TEXT_LOGOUT; header.LeftCommand = BackCommand; header.RightCommand = LogoutCommand; CurrentHeader = header; }
public MyListPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { var header = new HeaderModel(); header.HeaderText = AppResources.Text_ADDRESS_BOOK; header.LeftText = "sign-out-alt"; //AppResources.TEXT_LOGOUT; header.RightText = "plus"; //AppResources.TEXT_ADD; header.LeftCommand = LogoutCommand; header.RightCommand = AddCommand; header.IsVisiblesearchEntry = true; header.SearchContactCommand = SearchContactCommand; CurrentHeader = header; }
protected void Upload(string jobId, string requestType, List <IFormFile> files, string listName, string activityName, string uploaderName, bool uploadToSharepoint = true, string type = "") { var path = Path.Combine(this.HostingEnvironment.WebRootPath, requestType, jobId, type); foreach (var file in files) { if (file != null && file.Length > 0) { var filesx = HttpContext.Request.Form.Files; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } if (file.Length > 0) { string fileName = file.FileName.Substring(0, file.FileName.LastIndexOf(".")); fileName = fileName + DateTime.Now.ToLongTimeString().ValidateName() + Path.GetExtension(file.FileName); using (var fileStream = new FileStream(Path.Combine(path, fileName), FileMode.Create)) { file.CopyTo(fileStream); } } } } if (uploadToSharepoint) { var folder = new DirectoryInfo(path); if (folder.Exists) { FacadeService.UploadAttachments(path, listName, jobId, activityName, uploaderName, type); Directory.Delete(path, true); } } }
public ApiController(FacadeService facadeService) { FacadeService = facadeService; }
public ManageController(FacadeService facadeService, IOperationMessageAccessor operationMessageAccessor, IHubContext <GameHub, IGameHubClient> gameHubContext) { FacadeService = facadeService; OperationMessageAccessor = operationMessageAccessor; GameHubContext = gameHubContext; }
public CarouselPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { loadStaticData(); }
public HomeController(FacadeService facadeService) { FacadeService = facadeService; }
public TinderPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { InitializeProfiles(); }
public WebUrlTestPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { //AccountPageURL = "http://54.244.107.179/Plaid/Plaid"; //"http://34.216.71.66/Plaid/Plaid"; AccountPageURL = "https://us04web.zoom.us/j/9218226818?pwd=ZmdXcjJ3Z2RqcUE4UzBmVnhwWUNsdz09"; }
public ImgTransformPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { }
public ViewModelBase(INavigationService navigationService, FacadeService facadeService) { _navigationService = navigationService; _facadeService = facadeService; }
public BreadCrumbPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { MenuItems = ProductService.GetMenuItemsList(); }
public MainPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { }
public SwipeViewPageModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { }
public TransformCategoryPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { CategoryList = ImgService.GetImagesList(); }
public CollectionViewPageModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService) { Products = ProductService.GetProductsList(); }