Example #1
0
        public async Task <ApiResult> CreateAreaAsync(AreaDto areaDto)
        {
            var area = new Area();

            Mapper.Map(areaDto, area);
            var insertedId = await areaRepository.CreateAreaAsync(area, areaDto.MappingScheme);

            var apiResult = new ApiResult(MessageType.Success);

            apiResult.AdditionalDetails.Add("insertedId", insertedId);

            return(apiResult);
        }