Example #1
0
        /// <summary>
        /// To Insert
        /// </summary>
        /// <param name="DamagedCropsobj"></param>
        /// <returns></returns>
        public int Insert(DamagedCropsBO DamagedCropsobj)
        {
            DamagedCropsDAL DALobj = new DamagedCropsDAL(); //Data pass -to Database Layer

            try
            {
                return(DALobj.Insert(DamagedCropsobj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                DALobj = null;
            }
        }
Example #2
0
        //public DamagedCropsList GetCropName()
        //{
        //    DamagedCropsDAL DALobj = new DamagedCropsDAL();

        //    try
        //    {
        //        return DALobj.GetCropName();
        //    }
        //    catch (Exception erromsg)
        //    {
        //        throw (erromsg);
        //    }
        //    finally
        //    {
        //        DALobj = null;
        //    }
        //}

        //public DamagedCropsList GetCropType()
        //{
        //    DamagedCropsDAL DALobj = new DamagedCropsDAL();

        //    try
        //    {
        //        return DALobj.GetCropType();
        //    }
        //    catch (Exception erromsg)
        //    {
        //        throw (erromsg);
        //    }
        //    finally
        //    {
        //        DALobj = null;
        //    }
        //}

        //public DamagedCropsList GetCropDescription()
        //{
        //    DamagedCropsDAL DALobj = new DamagedCropsDAL();

        //    try
        //    {
        //        return DALobj.GetCropDescription();
        //    }
        //    catch (Exception erromsg)
        //    {
        //        throw (erromsg);
        //    }
        //    finally
        //    {
        //        DALobj = null;
        //    }
        //}

        /// <summary>
        /// To Get Damaged By
        /// </summary>
        /// <returns></returns>
        public DamagedCropsList GetDamagedBy()
        {
            DamagedCropsDAL DALobj = new DamagedCropsDAL();

            try
            {
                return(DALobj.GetDamagedBy());
            }
            catch (Exception erromsg)
            {
                throw (erromsg);
            }
            finally
            {
                DALobj = null;
            }
        }
Example #3
0
        /// <summary>
        /// To Get Data
        /// </summary>
        /// <param name="damageCropId"></param>
        /// <returns></returns>
        public DamagedCropsBO GetData(int damageCropId)
        {
            DamagedCropsDAL DALobj = new DamagedCropsDAL();

            return(DALobj.GetData(damageCropId));
        }
Example #4
0
        /// <summary>
        /// To Delete Data
        /// </summary>
        /// <param name="damageCropId"></param>
        /// <returns></returns>
        public int DeleteData(int damageCropId)
        {
            DamagedCropsDAL DALobj = new DamagedCropsDAL();

            return(DALobj.DeleteData(damageCropId));
        }
Example #5
0
        /// <summary>
        /// To Get Damaged Crops
        /// </summary>
        /// <param name="hhid"></param>
        /// <returns></returns>
        public DamagedCropsList GetDamagedCrops(string hhid)
        {
            DamagedCropsDAL DamagedCropsDALobj = new DamagedCropsDAL();

            return(DamagedCropsDALobj.GetDamagedCrops(hhid));
        }