Example #1
0
        public bool Save(Todo todo, out string Error)
        {
            Error = string.Empty;

            return(todo.Id < 1 ? _todoContext.Add(todo, out Error) : _todoContext.Edit(todo, out Error));
        }