protected override Domain.Main.Envanter.AvServer DoEntityMapBeforeUpdate(Application.ViewModels.Envanter.ServerCrudViewModel saveModel) { AvServer server = new AvServer(); server.Id = (long)saveModel.Id; server.Aciklama = saveModel.Aciklama; server.ComputerName = saveModel.ComputerName; server.LokasyonId = saveModel.LokasyonId; server.OperatingSystemId = saveModel.OperatingSystemId; server.PingYapilsinMi = saveModel.PingYapilsinMi; server.ServerIp = saveModel.ServerIp; server.ServerTipiId = saveModel.ServerTipiId; return(server); }
protected override AvServer DoEntityMapBeforeCreate(Application.ViewModels.Envanter.ServerCrudViewModel saveModel) { AvServer Server = new AvServer(); Server.ServerIp = saveModel.ServerIp; Server.ComputerName = saveModel.ComputerName; Server.Aciklama = saveModel.Aciklama; Server.LokasyonId = saveModel.LokasyonId; Server.ServerTipiId = saveModel.ServerTipiId; Server.OperatingSystemId = saveModel.OperatingSystemId; Server.PingYapilsinMi = saveModel.PingYapilsinMi; return(Server); }