Exemple #1
0
        public Models.Profile.Profile Update(Models.Profile.Profile entity)
        {
            var profile = entity.ToProfile();

            _connection.Update(profile);
            return(entity);
        }
Exemple #2
0
        public Models.Profile.Profile Save(Models.Profile.Profile entity)
        {
            var profile = entity.ToProfile();

            _connection.Insert(profile);
            return(entity);
        }
Exemple #3
0
        public ActionResult ReadProfile(int?user_id)
        {
            var x      = new Models.Profile.Profile();
            var data   = x.ReadProfile(user_id ?? 0);
            var output = new
            {
                data = data
            };

            return(Content(JsonConvert.SerializeObject(output), "application/json"));
        }