internal void UpdateEnvironment(DTOs.External.Environment environment)
        {
            tKovanContext ctx = new tKovanContext();

            TeknolojiKovaniWebApi.Models.EntityClass.Environment eEnvironment = ctx.Environment.Single(x => x.Id == environment.Id);
            eEnvironment.Name = environment.Name;
            ctx.SaveChanges();
        }
        public DTOs.External.Environment GetEnvironmentById(int Id)
        {
            tKovanContext ctx = new tKovanContext();

            TeknolojiKovaniWebApi.Models.EntityClass.Environment Environment = ctx.Environment.Where(x => x.Id == Id).FirstOrDefault();
            DTOs.External.Environment eEnvironment = new DTOs.External.Environment();
            eEnvironment = Utilities.Map <TeknolojiKovaniWebApi.Models.EntityClass.Environment, DTOs.External.Environment>(Environment, eEnvironment);
            return(eEnvironment);
        }
        internal void SaveEnvironment(DTOs.External.Environment environment)
        {
            tKovanContext ctx = new tKovanContext();

            TeknolojiKovaniWebApi.Models.EntityClass.Environment eEnvironment = new Models.EntityClass.Environment();
            eEnvironment.Name   = environment.Name;
            eEnvironment.UserId = environment.UserId;
            ctx.Environment.Add(eEnvironment);
            ctx.SaveChanges();
        }