Beispiel #1
0
        public ReturnMessageModel CompanyIns(CompanyModel model)
        {
            ReturnMessageModel result        = new ReturnMessageModel();
            ObjectParameter    returnMessage = new ObjectParameter("ReturnMessage", typeof(String));

            using (PayrollEntities db = new PayrollEntities())
            {
                db.SpCompanyIns(model.CompanyId, model.CompanyName, model.UserId, returnMessage);
                result.ReturnMessage = returnMessage.Value.ToString();
                return(result);
            }
        }