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()); }
public void Post(UpdateProfile request) { _dlnaManager.UpdateProfile(request); }