//// POST api/stateregis
        //public void Post([FromBody]string value)
        //{
        //}
        //--------------------------insert part---------------
        public string Post(string statename)
        {
            StateRegis ob = new StateRegis();

            ob.statename = statename;
            return(InsertEmployees(ob));
        }
        public static string InsertEmployees(StateRegis prod)
        {
            string str = "";

            try
            {
                str = SaveData(prod.statename);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
            return(str);
        }