// this function for just referance for partial update field user have to create seperate function learn from this function.
        public bool UpdatePartial(ENT.ApplicationVersion objEntity)
        {
            bool blnResult = false;

            try
            {
                //Create Fields List in dictionary
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.appversionid), true);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.androidversion), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.iosversion), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.SystemDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.CreatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.CreatedDateTime), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.UpdatedBy), false);
                dctFields.Add(COM.HelperMethod.PropertyName <ENT.ApplicationVersion>(x => x.UpdatedDateTime), false);
                objEntity.FieldCollection = dctFields;
                if (objDAL.SaveChanges(objEntity.FieldCollection, objEntity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }
        public object GetByPrimaryKey(ENT.ApplicationVersion Entity)
        {
            object objResult = null;

            try
            {
                DAL.CRUDOperation tt = new DAL.CRUDOperation();
                objResult = tt.GetEntityByPrimartKey(Entity);
            }
            catch (Exception)
            {
                throw;
            }
            return(objResult);
        }
 public ENT.ApplicationVersionView GetLatestVersion()
 {
     ENT.ApplicationVersionView Entity = new ENT.ApplicationVersionView();
     Entity = clsDAL.GetLatestVersion();
     return(Entity);
 }