예제 #1
0
		async public  Task<DataAccessLayer.SOAResult> SaveAsync ( BusinessLayer.User user)
		{
			// First check if this is an Insert or Update Statement
			DataAccessLayer.DAL_Task dal_Task = new DataAccessLayer.DAL_Task ();
			if (ID == null)
			{
				// This is an Insert statement
				DataAccessLayer.ReturnValue success = await dal_Task.InsertTaskAsync (this,  user);
				this.ID = success.ID;				
				return success.Success;
			}
			else
			{
				// This is an Update statement
				return await dal_Task.UpdateTaskAsync (this,  user);

			}
		}