public IEnumerable <City> Get()
        {
            IEnumerable <City> objReturn = null;

            using (City_BAL obj_BAL = new City_BAL())
            {
                objReturn = obj_BAL.GetAllRecord();
            }
            return(objReturn);
        }
        public DefaultResult Post([FromBody] City objCity)
        {
            DefaultResult objReturn = new DefaultResult();

            if (objCity.Id == 0)
            {
                objCity.CityId       = Guid.NewGuid();
                objCity.CreationDate = DateTime.UtcNow.AddHours(5).AddMinutes(30);
                objCity.IsActive     = true;
                //objCity.PasswordHash = EncryptionLibrary.EncryptText(objCity.PasswordHash);
            }

            objCity.UpdatedDate = DateTime.UtcNow.AddHours(5).AddMinutes(30);
            objCity.IsDeleted   = false;

            using (City_BAL objBAL = new City_BAL())
            {
                objReturn.Data = objBAL.InsertUpdateRecord(objCity).ToString();
            }

            return(objReturn);
        }