Example #1
0
        public async Task <Couple> UpdateCoupleAsync(int Id, Couple coupleData)
        {
            Couple couple = await GetCoupleAsync(Id);

            if (couple == null)
            {
                return(null);
            }

            couple.CopyFrom(coupleData);
            couple.Validated = true;

            await Database.SaveChangesAsync();

            return(couple);
        }