Esempio n. 1
0
        public string Insert(PlayDetail playDetail)
        {
            var errorMessage = String.Empty;

            try
            {
                db.PlayDetails.Add(playDetail);
                db.SaveChanges();
                return(errorMessage);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
                return(errorMessage);
            }
        }
        public string Insert(PersonalDetail user)
        {
            var errorMessage = String.Empty;

            try
            {
                db.PersonalDetails.Add(user);
                db.SaveChanges();
                return(errorMessage);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
                return(errorMessage);
            }
        }
Esempio n. 3
0
        public string Insert(Team teamDetail)
        {
            var errorMessage = String.Empty;

            try
            {
                db.Teams.Add(teamDetail);
                db.SaveChanges();
                return(errorMessage);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
                return(errorMessage);
            }
        }