示例#1
0
        public static string Update_Experience(INSERT_EXPERIENCES_INPUT up)
        {
            ResponseModel rs  = new ResponseModel();
            var           dto = new INSERT_EXPERIENCES
            {
                idExperiences  = up.idExperiences,
                IdUser         = up.IdUser,
                Title          = up.Title,
                StartDay       = up.StartDay,
                EndDay         = up.EndDay,
                NameCompanny   = up.NameCompanny,
                StatusDoingJob = up.StatusDoingJob,
                Note           = up.Note
            };
            var res = IData.update_Experiences(dto);

            if (res.ResponseCode == 1)
            {
                rs.Returncode    = ResponseCodeEnum.Success.GetHashCode();
                rs.ReturnMessage = "Cập nhật kinh nghiệm thành công";
            }
            else
            {
                rs.Returncode    = ResponseCodeEnum.Failed.GetHashCode();
                rs.ReturnMessage = "Cập nhật kinh nghiệm thất bại";
            }
            string js = CONVERJS.convert(rs);

            return(js);
        }
示例#2
0
 public ResponseResult update_Experiences(INSERT_EXPERIENCES model)
 {
     try
     {
         var lp = new List <SqlParameter>
         {
             new SqlParameter("@idExperiences", model.idExperiences),
             new SqlParameter("@idUser", model.IdUser),
             new SqlParameter("@title", model.Title),
             new SqlParameter("@nameCompanny", model.NameCompanny),
             new SqlParameter("@startDay", model.StartDay),
             new SqlParameter("@endDay", model.EndDay),
             new SqlParameter("@statusDoingJob", model.StatusDoingJob),
             new SqlParameter("@note", model.Note),
         };
         return(CONNECT.CONNECT.ExecuteSP <ResponseResult>("updateExperiences", lp));
     }
     catch (Exception e)
     {
         throw e;
     }
 }