protected void ButtonResume_Click(object sender, EventArgs e)
        {
            string craft       = String.Format("{0}", Request.Form["ctl00$MainContent$input_craft"]);
            string description = String.Format("{0}", Request.Form["ctl00$MainContent$input_description"]);
            string price       = String.Format("{0}", Request.Form["ctl00$MainContent$input_price"]);
            string phone       = String.Format("{0}", Request.Form["ctl00$MainContent$phone"]);
            string firstName   = String.Format("{0}", Request.Form["ctl00$MainContent$input_firstName"]);
            string lastName    = String.Format("{0}", Request.Form["ctl00$MainContent$input_lastName"]);
            string address     = String.Format("{0}", Request.Form["ctl00$MainContent$address"]);
            string email       = String.Format("{0}", Request.Form["ctl00$MainContent$email"]);
            string city        = String.Format("{0}", Request.Form["ctl00$MainContent$city"]);

            var objPhotos = String.Format("{0}", Request.Form["ResumePhotos"]);

            Rentoolo.Model.CraftsMan resume = new Model.CraftsMan();

            if (objPhotos != null)
            {
                String[] listPhotos = objPhotos.Split(',');

                var jsonPhotos = JsonConvert.SerializeObject(listPhotos);

                resume.ImgUrls = jsonPhotos;
            }
            else
            {
                resume.ImgUrls = "[\"/img/kitchen/falafel-s-ovoshami.jpg\"]";
            }
            try
            {
                int category = 1;
                resume.Category = category;

                resume.Id = category;  // TODO переделать
            }
            catch { }
            try
            {
                resume.Price = float.Parse(price);
            }
            catch { }

            //resume.CreatedUserId = User.UserId;
            resume.Сraft       = craft;
            resume.Created     = DateTime.Now;
            resume.Address     = address;
            resume.Description = description;
            resume.Phone       = phone;
            resume.FirstName   = firstName;
            resume.LastName    = lastName;
            resume.Region      = city; //TODO переделать поля в бд
            resume.Email       = email;

            CraftsManDataHelper.AddCraftsMan(resume);

            Response.Redirect("CraftsManTasks.aspx");
        }
        protected void ButtonResume_Click(object sender, EventArgs e)
        {
            string craft       = String.Format("{0}", Request.Form["MainContent$input_craft"]);
            string description = String.Format("{0}", Request.Form["MainContent$input_description"]);
            string price       = String.Format("{0}", Request.Form["MainContent$input_price"]);
            string phone       = String.Format("{0}", Request.Form["MainContent$resPhone"]);
            string firstName   = String.Format("{0}", Request.Form["MainContent$input_firstName"]);
            string lastName    = String.Format("{0}", Request.Form["MainContent$input_lastName"]);
            string address     = String.Format("{0}", Request.Form["MainContent$address"]);
            string email       = String.Format("{0}", Request.Form["MainContent$email"]);
            string country     = String.Format("{0}", Request.Form["MainContent$country"]);
            string region      = String.Format("{0}", Request.Form["MainContent$region"]);

            //var objPhotos = Request.Form[""];
            Rentoolo.Model.CraftsMan resume = new Model.CraftsMan();

            //if (objPhotos != null)
            //{
            //    String[] listPhotos = objPhotos.Split(',');

            //    var jsonPhotos = JsonConvert.SerializeObject(listPhotos);

            //    order.ImgUrls = jsonPhotos;
            //}
            //else
            //{
            //    order.ImgUrls = "[\"/img/a/noPhoto.png\"]";
            //}

            //try
            //{
            //    order.Category = Int32.Parse(category);
            //}
            //catch { }
            try
            {
                resume.Price = double.Parse(price);
            }
            catch { }

            //resume.CreatedUserId = User.UserId;
            resume.Сraft       = craft;
            resume.Created     = DateTime.Now;
            resume.Address     = address;
            resume.Description = description;
            resume.Phone       = phone;
            resume.FirstName   = firstName;
            resume.LastName    = lastName;
            resume.Region      = region;
            resume.Country     = country;
            CraftsManDataHelper.AddCraftsMan(resume);

            //Response.Redirect("");
        }
        protected void ButtonOrder_Click(object sender, EventArgs e)
        {
            string category    = Request.QueryString["cat"];
            string nameTask    = String.Format("{0}", Request.Form["ctl00$MainContent$input_nameTask"]);
            string description = String.Format("{0}", Request.Form["ctl00$MainContent$input_description"]);
            string price       = String.Format("{0}", Request.Form["ctl00$MainContent$price_value"]);
            //string video = String.Format("{0}", Request.Form["ctl00$MainContent$input_video"]);
            //string place = String.Format("{0}", Request.Form["ctl00$MainContent$additem_place"]);
            string phone = String.Format("{0}", Request.Form["ctl00$MainContent$phonenum"]);



            //TODO добавить в табл
            //string firstName = String.Format("{0}", Request.Form["ctl00$MainContent$input_firstName"]);
            //string lastName = String.Format("{0}", Request.Form["ctl00$MainContent$input_lastName"]);

            //var objPhotos = Request.Form[""];



            Rentoolo.Model.CraftsMan order = new Model.CraftsMan();

            //if (objPhotos != null)
            //{
            //    String[] listPhotos = objPhotos.Split(',');

            //    var jsonPhotos = JsonConvert.SerializeObject(listPhotos);

            //    order.ImgUrls = jsonPhotos;
            //}
            //else
            //{
            //    order.ImgUrls = "[\"/img/a/noPhoto.png\"]";
            //}

            //try
            //{
            //    order.Category = Int32.Parse(category);
            //}
            //catch { }



            order.Description = description;



            try
            {
                order.Price = double.Parse(price);
            }
            catch { }

            //order.video = video;

            //order.Address = place;

            order.Phone = phone;

            //order.YouTubeUrl = video;

            //order.CreatedUserId = User.UserId;

            order.Created = DateTime.Now;

            CraftsManDataHelper.AddCraftsMan(order);

            Response.Redirect("MyAdverts.aspx");
        }