public void Update(CodeTableModel codeBase)
        {
            if (codeBase == null)
            {
                throw new ArgumentNullException("CodeBase");
            }

            throw new NotImplementedException("Update CodeBase");
        }
Esempio n. 2
0
        public IHttpActionResult Post(CodeTableModel model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                _codeTableService.Insert(model);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
        public void Insert(CodeTableModel codeBase)
        {
            if (codeBase == null)
            {
                throw new ArgumentNullException("CodeBase");
            }

            _codeBaseRepository.Insert(new CodesTable
            {
                TableName    = codeBase.TableName,
                Definition   = codeBase.Definition,
                IsActive     = codeBase.IsActive,
                FirmId       = codeBase.FirmId,
                InsertedBy   = codeBase.InsertedBy,
                InsertedDate = codeBase.InsertedDate,
                UpdatedBy    = codeBase.UpdatedBy,
                UpdatedDate  = codeBase.UpdatedDate
            });
        }