예제 #1
0
        public IHttpActionResult PostBuilding([FromBody] BuildingDto rc)
        {
            BuildingsManager rm = new BuildingsManager();

            IMapper iMapper     = AutomapperInitialize();
            var     source      = rc;
            var     destination = iMapper.Map <BuildingDto, Building>(source);

            rm.CreateBuilding(destination);
            return(Ok());
        }