/// <summary> /// /// </summary> /// <param name="Space"></param> /// <returns></returns> public SpaceDTO CreateSpace(SpaceDTO Space) { TblSpace space = _mapper.Map <TblSpace>(Space); space.SpaceId = Guid.NewGuid().ToString(); space.CreatedDate = DateTime.Now; space = _spaceRepository.CreateSpace(space); SpaceDTO spacedto = _mapper.Map <SpaceDTO>(space); return(spacedto); }
/// <summary> /// /// </summary> /// <param name="Space"></param> /// <returns></returns> public bool CreateSpace(SpaceDTO Space) { TblSpace space = _mapper.Map <TblSpace>(Space); return(_spaceRepository.CreateSpace(space)); }