public decimal AvaliablePlotArea(string FarmerId, int SeasonID, int Year, int FarmID) { DataTable dtFarm = Farmer_DL.AvaliablePlotArea(FarmerId, SeasonID, Year, FarmID); decimal APA = 0; if (dtFarm.Rows.Count > 0) { APA = Convert.ToDecimal(dtFarm.Rows[0][0].ToString()); } return(APA); }