public string CreateZipCode(ZipCode zipCode)
        {
            Models.zip_code zip = new zip_code();
            zip.zip_code1 = zipCode.Zip;
            zip.city = zipCode.City;

            db.zip_codes.InsertOnSubmit(zip);
            try
            {
                db.SubmitChanges();
                return "Ny zip code oprettet: "+ zip.zip_code1;
            }
            catch (Exception e)
            {
                return "Oprettelsen af ny zip mislykkedes. Kontakt IT-support med følgende fejlkode: " + e.Message;
            }
        }
Example #2
0
 partial void Deletezip_code(zip_code instance);
Example #3
0
 partial void Updatezip_code(zip_code instance);
Example #4
0
 partial void Insertzip_code(zip_code instance);
Example #5
0
 partial void Deletezip_code(zip_code instance);
Example #6
0
 partial void Updatezip_code(zip_code instance);
Example #7
0
 partial void Insertzip_code(zip_code instance);