* DataManager.cs:
* InitDb.aspx: * Created.aspx: * DataAccess.cs: * AdminController.cs: Refactoring * App.master: * NoLogin.master: Fixes not wanted differences between NoLogin and App master pages * instdbws.sql: Fixes an useless ownership attribution.
This commit is contained in:
parent
cfd023411d
commit
4bb83ce552
8 changed files with 63 additions and 48 deletions
|
|
@ -11,7 +11,6 @@ using Yavsc.Admin;
|
|||
using System.IO;
|
||||
using Yavsc.Model;
|
||||
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
|
|
@ -40,11 +39,10 @@ namespace Yavsc.Controllers
|
|||
{
|
||||
if (doInit=="on") {
|
||||
if (ModelState.IsValid) {
|
||||
// TODO BETTER
|
||||
datac.BackupPrefix = Server.MapPath (datac.BackupPrefix);
|
||||
DataManager mgr = new DataManager (datac);
|
||||
TaskOutput t = mgr.CreateDb ();
|
||||
return View ("Created", t);
|
||||
TaskOutput tcdb = mgr.CreateDb ();
|
||||
return View ("Created", tcdb);
|
||||
}
|
||||
}
|
||||
return View ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue