Exemplo n.º 1
0
        public bool Add(string Name, string EmailId, string Password, string Image, string Status, string Area, string Notes, string MobileNumber, int IsAdmin)
        {
            bool Result = false;

            try
            {
                string Id = Guid.NewGuid().ToString();
                Result = _userData.AddUser(Id, Name, EmailId, Password, Image, Status, Area, Notes, MobileNumber, IsAdmin);
                if (IsAdmin == 2)
                {
                    Utilities.Slider _sliderData = new Utilities.Slider();
                    Result = _sliderData.Add("Slider One", Id);
                    Result = _sliderData.Add("Slider Two", Id);
                }
            }
            catch (Exception)
            {
            }
            return(Result);
        }