public farmerproducts SelectById(Int64 cid)
        {
            farmerproducts objfarmerproducts = new farmerproducts();

            try
            {
                Cls_farmerproducts_db objCls_farmerproducts_db = new Cls_farmerproducts_db();
                objfarmerproducts = objCls_farmerproducts_db.SelectById(cid);
                return(objfarmerproducts);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objfarmerproducts);
            }
        }
        public Int64 Update(farmerproducts objfarmerproducts)
        {
            Int64 result = 0;

            try
            {
                Cls_farmerproducts_db objCls_farmerproducts_db = new Cls_farmerproducts_db();
                result = Convert.ToInt64(objCls_farmerproducts_db.Update(objfarmerproducts));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }