static public void Delete(System.String territoryID, esSqlAccessType sqlAccessType)
        {
            var obj = new Territories();

            obj.TerritoryID = territoryID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
Example #2
0
 public void UpdateTerritories(BusinessObjects.Territories obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
		public jsResponse<TerritoriesCollection, Territories> Territories_Save(Territories entity)
		{
			jsResponse<TerritoriesCollection, Territories> response = new jsResponse<TerritoriesCollection, Territories>();

			try
			{
				entity.Save();
				response.entity = entity;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
Example #4
0
 public void InsertTerritories(BusinessObjects.Territories obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }