Пример #1
0
        public string CustomerLoginRegistration(string Firstname, string Lastname, string Email, int Phone, string StreetAddress, int CountryId, string AreaId, string Password)
        {
            Security      objSecurity = new Security();
            string        saltKey;
            List <string> obj = new List <string>();

            saltKey = objSecurity.CreateSaltKey(5);
            using (var entities = new SedapExpressEntities())
            {
                obj = entities.CustomerLoginRegistration(Firstname, Lastname, Email, Phone, StreetAddress, CountryId, AreaId, objSecurity.CreatePasswordHash(Password, saltKey), saltKey, Guid.NewGuid()).ToList <string>();
            }


            return(JsonConvert.SerializeObject(obj));
        }