public UserGroup Create(GroupModel group, Infrastructure.Database.AppContext homeContext) { return(new UserGroup() { GroupName = group.GroupName, }); }
public Analysis Create(AnalysisModel model, Infrastructure.Database.AppContext context) { //TODO return(new Analysis() { }); }
public Version Create(VersionModel verzija, Infrastructure.Database.AppContext homeContext) { return(new Version() { Id = verzija.Id, Date = verzija.Date, VersionName = verzija.VersionName, AnalysisApplicationForm = new AnalysisApplicationForm() }); }
public Application Create(ApplicationModel model, Infrastructure.Database.AppContext context) { return(new Application() { Id = model.Id, Name = model.Name, Url = model.Url, ApplicationType = model.ApplicationType.ToString() }); }
public User Create(User korisnik, Infrastructure.Database.AppContext homeContext) { return(new User() { Id = korisnik.Id, Admin = korisnik.Admin, FirstName = korisnik.FirstName, LastName = korisnik.LastName }); }
public UserGroup CreateGroupWithUsers(GroupModel model, Infrastructure.Database.AppContext context) { var users = new Repository <UserGroup>(context).Get(model.Id); return(new UserGroup() { Id = model.Id, GroupName = model.GroupName, Users = users.Users }); }