public async Task <OperationResult> UpdateAsync(Note note)
        {
            try
            {
                await _dao.UpdateAsync(note);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = true, Exception = e
                });
            }
        }
Beispiel #2
0
        public async Task <OperationResult> UpdateAsync(UserTransaction userTransaction)
        {
            try
            {
                await _dao.UpdateAsync(userTransaction);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = true, Exception = e
                });
            }
        }
        public async Task <OperationResult> UpdateAsync(Categories category)
        {
            try
            {
                await _dao.UpdateAsync(category);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = false, Exception = e
                });
            }
        }
        public async Task <OperationResult> UpdateAsync(TimesOfDay item)
        {
            try
            {
                await _dao.UpdateAsync(item);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = false, Exception = e
                });
            }
        }
Beispiel #5
0
        public async Task <OperationResult> UpdateAsync(Profiles profile)
        {
            try
            {
                await _dao.UpdateAsync(profile);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = false, Exception = e
                });
            }
        }
        public async Task <OperationResult> UpdateAsync(WeightMultiplier weightMultiplier)
        {
            try
            {
                await _dao.UpdateAsync(weightMultiplier);

                return(new OperationResult()
                {
                    Success = true
                });
            }
            catch (Exception e)
            {
                return(new OperationResult()
                {
                    Success = true, Exception = e
                });
            }
        }