public HttpResponseMessage Post([FromBody] DepartmentDevice departmentDeviceInfo)
        {
            return(ActionWarpper.Process(departmentDeviceInfo, OperationCodes.ADEPTDV, () =>
            {
                var repo = RepositoryManager.GetRepository <IDepartmentDeviceRepository>();
                repo.Insert(departmentDeviceInfo);

                return Request.CreateResponse(HttpStatusCode.OK, departmentDeviceInfo);
            }, this));
        }
        public HttpResponseMessage Put(int id, [FromBody] DepartmentDevice departmentDeviceInfo)
        {
            return(ActionWarpper.Process(departmentDeviceInfo, OperationCodes.MDEPTDV, () =>
            {
                departmentDeviceInfo.DepartmentDeviceID = id;
                var repo = RepositoryManager.GetRepository <IDepartmentDeviceRepository>();
                repo.Update(departmentDeviceInfo);

                return Request.CreateResponse(HttpStatusCode.OK);
            }, this));
        }