public static Space GetSpace(SpaceDO spaceDO) { Space space = new Space(spaceDO.ID, spaceDO.SpaceDesc); // { // ID = spaceDO.ID, // Name = spaceDO.SpaceDesc // }; return(space); }
public static SpaceDO GetSpaceDO(Space space) { SpaceDO spaceDO = new SpaceDO() { ID = space.id, SpaceDesc = space.name }; return(spaceDO); }
public int DeleteSpaces(Space space) { int result = 0; try { SpaceDO spaceDO = Converter.GetSpaceDO(space); result = spaceRepository.DeleteEntity(spaceDO.ID); } catch (Exception ex) { Debug.WriteLine("Exception Occured in DeleteSpaces method due to " + ex.Message); } return(result); }
public static IEnumerable <SpaceDO> GetMasterSpaceDO(IEnumerable <Model.ServiceModel.MasterSpace> spaces) { List <SpaceDO> spaceDO = new List <SpaceDO>(); foreach (var spc in spaces) { SpaceDO spcDO = new SpaceDO() { ID = spc.SpaceID, SpaceDesc = spc.SpaceDesc, Priority = spc.Priority }; spaceDO.Add(spcDO); } return(spaceDO); }
public Space GetSpace(int SpaceID) { Space space = new Space(-1, "");// try { SpaceDO spaceDO = spaceRepository.GetEntity(SpaceID); if (spaceDO != null) { space = Converter.GetSpace(spaceDO); } } catch (Exception ex) { Debug.WriteLine("Exception Occured in GetSpace method due to " + ex.Message); } return(space); }