示例#1
0
        /// <summary>
        /// To Update Data
        /// </summary>
        /// <param name="Cropsobj"></param>
        /// <returns></returns>
        public int UpdateData(CropsBO Cropsobj)
        {
            CropsDAL DALobj = new CropsDAL();

            try
            {
                return(DALobj.Update(Cropsobj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                DALobj = null;
            }
        }
示例#2
0
        /// <summary>
        /// To Insert into Database
        /// </summary>
        /// <param name="Cropsobj"></param>
        /// <returns></returns>
        public int Insert(CropsBO Cropsobj)
        {
            CropsDAL DALobj = new CropsDAL(); //Data pass -to Database Layer

            try
            {
                return(DALobj.Insert(Cropsobj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                DALobj = null;
            }
        }
示例#3
0
        /// <summary>
        /// To Delete Data
        /// </summary>
        /// <param name="cropid"></param>
        /// <returns></returns>
        public int DeleteData(string cropid)
        {
            CropsDAL DALobj = new CropsDAL();

            return(DALobj.DeleteData(cropid));
        }
示例#4
0
        /// <summary>
        /// To Get Data
        /// </summary>
        /// <param name="CropId"></param>
        /// <returns></returns>
        public CropsBO GetData(int CropId)
        {
            CropsDAL DALobj = new CropsDAL();

            return(DALobj.GetData(CropId));
        }
示例#5
0
        /// <summary>
        /// To Get Crops
        /// </summary>
        /// <param name="householdID"></param>
        /// <returns></returns>
        public CropsList GetCrops(int householdID)
        {
            CropsDAL CropsDALobj = new CropsDAL();

            return(CropsDALobj.GetCrops(householdID));
        }