Cats.Areas.EarlyWarning.Controllers.RequestController.GetPlannedForPSNP C# (CSharp) Method

GetPlannedForPSNP() private method

private GetPlannedForPSNP ( int year, int regionId, int fdpId ) : int
year int
regionId int
fdpId int
return int
        private int GetPlannedForPSNP(int year, int regionId, int fdpId)
        {
            var woreda = _fdpService.FindById(fdpId);
            RegionalPSNPPlanDetail psnp = null;
            try
            {

                psnp = _RegionalPSNPPlanDetailService.Get(
                    p =>
                    p.RegionalPSNPPlan.Year == year && p.PlanedWoredaID == woreda.AdminUnit.AdminUnitID)
                    .SingleOrDefault();

            }
            catch (Exception)
            {

            }

            if (psnp != null)
            {
                return psnp.BeneficiaryCount;
            }
            else return 0;
        }