public IEnumerable <ModuleMaster> getModuleStatus()
        {
            RepositoryService <ModuleMaster> objModuleMaster = new RepositoryService <ModuleMaster>(_vContext);

            return(objModuleMaster.SelectAll());
        }
Exemplo n.º 2
0
        //public bool uploadFiletoServer(IConfiguration _configuration) //string strFiles, IFormFile fromFile)
        //{
        //    try
        //    {
        //        // First way
        //        //string conectionString = _configuration.GetSection("ConnectionStrings").GetSection("EmployeeDatabase").Value;
        //        string aalowExtension = _configuration.GetSection("Extension").GetSection("AllowFileExtension").Value;
        //        string preventExtension = _configuration.GetSection("Extension").GetSection("PreventFileExtension").Value;

        //        // Second way
        //        //string value2 = _configuration.GetValue<string>("Data:ConnectionString");
        //        string VendorDocumentsFolder = _configuration["VendorDocumentsFolder"];
        //        string AnchorDocumentsFolder = _configuration["AnchorDocumentsFolder"];



        //    }
        //    catch (Exception)
        //    {

        //        //throw
        //    }
        //    return false;
        //}
        #endregion

        /// <summary>
        /// Check User Old Password
        /// </summary>
        /// <returns></returns>
        public IEnumerable <User> CheckUserPassword()
        {
            RepositoryService <User> objUser = new RepositoryService <User>(_vContext);

            return(objUser.SelectAll());
        }