Exemplo n.º 1
0
 public MSActorReturnMessageModel AddNetShare([FromBody] ShareModel input)
 {
     try {
         string logmessage = "AddNetShare | name: " + input.name + " | computername: " + input.computername + " | path: " + input.path;
         util.LogMessage(logmessage);
         FileServerController control = new FileServerController();
         return(control.AddNetShare(input.name, input.computername, input.path));
     }catch (Exception e)
     {
         return(util.ReportError(e));
     }
 }
Exemplo n.º 2
0
 public MSActorReturnMessageModel RemoveDirectory([FromBody] DirectoryModel input)
 {
     try {
         string logmessage = "RemoveDirectory | identity: " + input.computername + " | path: " + input.path;
         util.LogMessage(logmessage);
         FileServerController control = new FileServerController();
         return(control.RemoveDirectory(input.computername, input.path));
     }catch (Exception e)
     {
         return(util.ReportError(e));
     }
 }
Exemplo n.º 3
0
 public MSActorReturnMessageModel ModifyDirQuota([FromBody] DirectoryQuotaModel input)
 {
     try {
         string logmessage = "ModifyDirQuota | computername: " + input.computername + " | path: " + input.path +
                             " | limit: " + input.limit;
         util.LogMessage(logmessage);
         FileServerController control = new FileServerController();
         return(control.ModifyDirQuota(input.computername, input.path, input.limit));
     }
     catch (Exception e)
     {
         return(util.ReportError(e));
     }
 }
Exemplo n.º 4
0
 public MSActorReturnMessageModel AddGroupFolderAccess([FromBody] GroupFolderAccessModel input)
 {
     try {
         string logmessage = "AddGroupFolderAccess | groupname: " + input.groupname + " | computername: " + input.computername +
                             " | path: " + input.path + " | accesstype: " + input.accesstype;
         util.LogMessage(logmessage);
         FileServerController control = new FileServerController();
         return(control.AddGroupFolderAccess(input.groupname, input.computername, input.path, input.accesstype));
     }
     catch (Exception e)
     {
         return(util.ReportError(e));
     }
 }