コード例 #1
0
        public ActionResult UpdateProfile([FromRoute, Required] string profileId, [FromBody] DeviceProfile deviceProfile)
        {
            var existingDeviceProfile = _dlnaManager.GetProfile(profileId);

            if (existingDeviceProfile == null)
            {
                return(NotFound());
            }

            _dlnaManager.UpdateProfile(profileId, deviceProfile);
            return(NoContent());
        }
コード例 #2
0
 public void Post(UpdateProfile request)
 {
     _dlnaManager.UpdateProfile(request);
 }