コード例 #1
0
ファイル: Operationsv2.cs プロジェクト: cruzzed/PayrollApp
        /// <summary>
        /// Adds a new location
        /// </summary>
        /// <param name="location"></param>
        /// <returns></returns>
        public async Task <int> AddNewLocation(Location location)
        {
            int locationID = -1;

            if (!string.IsNullOrEmpty(location.locationName))
            {
                locationID = await da.AddNewLocationAsync(location);
            }
            return(locationID);
        }