public void SaveRepo([FromBody] SerializationRequest request) { lock (Locker.obj) { RepoContainer.CurrentRepo().Save("serialized/" + request.Filename); } }
public void CreateModel(string metamodel, string name) { lock (Locker.obj) { RepoContainer.CurrentRepo().CreateModel(name, metamodel); } }
public void DeleteModel(string modelName) { lock (Locker.obj) { IModel model = GetModelFromRepo(modelName); RepoContainer.CurrentRepo().DeleteModel(model); } }
private IModel GetModelFromRepo(string name) => RepoContainer.CurrentRepo().Model(name);
public ActionResult <Model> Model(string modelName) => _mapper.Map <Model>(RepoContainer.CurrentRepo().Model(modelName));
public ActionResult <IEnumerable <string> > GetModels() => RepoContainer.CurrentRepo() .Models .ToList() .ConvertAll <string>(model => model.Name);