Example #1
0
        public CultivationDetailDTO AddCultivationDetails(CultivationDetailDTO cultivationdetail)
        {
            var model = AutoMapper.Mapper.Map <CultivationDetail>(cultivationdetail);

            model = dcmrepo.AddCultivationDetails(model);
            cultivationdetail.ID = model.Id;
            return(cultivationdetail);
        }
Example #2
0
        public bool UpdateCultivationDetails(CultivationDetailDTO cultivationdetail)
        {
            var model = AutoMapper.Mapper.Map <CultivationDetail>(cultivationdetail);

            return(dcmrepo.UpdateCultivationDetails(model));
        }