public bool DeleteDistributionByAgeDetail(DistributionByAgeDetail entity)
 {
     if(entity==null) return false;
      _unitOfWork.DistributionByAgeDetailRepository.Delete(entity);
        _unitOfWork.Save();
        return true;
 }
 public DistributionByAgeDetail GetDistributionDetail(int requisitionID, int fdpID)
 {
     var distributionDetail = _unitOfWork.DistributionByAgeDetailRepository.FindBy(m =>m.FDPID == fdpID).FirstOrDefault();
        if (distributionDetail != null)
        {
        var distributionByAgeDetail = new DistributionByAgeDetail()
            {
                FemaleLessThan5Years = distributionDetail.FemaleLessThan5Years,
                MaleLessThan5Years = distributionDetail.MaleLessThan5Years,
                FemaleBetween5And18Years = distributionDetail.FemaleBetween5And18Years,
                MaleBetween5And18Years = distributionDetail.MaleBetween5And18Years,
                FemaleAbove18Years = distributionDetail.FemaleAbove18Years,
                MaleAbove18Years = distributionDetail.MaleAbove18Years
            };
        return distributionByAgeDetail;
        }
        return null;
 }
 public bool EditDistributionByAgeDetail(DistributionByAgeDetail entity)
 {
     _unitOfWork.DistributionByAgeDetailRepository.Edit(entity);
        _unitOfWork.Save();
        return true;
 }