コード例 #1
0
        //APPROVE EVENT
        public static string ApproveEv(EventViewModel paramEv)
        {
            string latestSaveCode = string.Empty;

            try
            {
                using (var db = new MarkomApplicationDBEntities())
                {
                    ObjectParameter returnId = new ObjectParameter("Code", typeof(string));

                    db.spEventApprove(
                        paramEv.id
                        , returnId
                        , paramEv.status
                        , paramEv.assignTo
                        , paramEv.approveBy
                        , paramEv.approveDate);

                    latestSaveCode = (String)returnId.Value;
                }
            }
            catch (Exception ex)
            {
                Message = ex.Message;
            }

            return(latestSaveCode);
        }